Tian's profilefall's room space~PhotosBlogListsMore ![]() | Help |
|
感谢访问!
培 金wrote:
你是不是工作太累了?看上去较憔悴,多放松下嘛
Jan. 19
halena LIUwrote:
补充下~~那个大蟹蟹看上去还是不错滴~~这个做surprise貌似还是很和我意滴~~咔咔~~
Oct. 13
halena LIUwrote:
阅~~
Oct. 13
|
fall's room space~to be good.... then great April 24 How to Create Context Menu for CommonViewerAs we are moving from eclipse3.1 to eclipse3.3 and beyond, the well-known Common Navigator Framework (CNF) are more commonly utilized to serve the needs of providing a robust and loosely coupled content view structure. However, the inherent design of the CommonNavigator requests each of its instances maintain their action service and composing viewer separately. In other words, if we want to reuse the common viewer by instantiating one outside of its Navigator scope like wizard page or JFace dialog, we would encounter the bottleneck of reusing the viewer's associated action service. Therefore, to achieve adding context menu to a reused common viewer, we have to programmatically constitute the context menu and hook up action service from the navigator. The following code snippet simply returns an instance of CommonViewer for reuse purpose.
After getting the CommonViewer, we have to programmatically create a context menu manager, get the actionService from the Navigator, and hook it into the context menu. The following section illustrate how to implement a context menu on CommonViewer in a wizard page.
Sample Usage of IExtensionStateModelDescription/ImplementationIExtensionStateModel is a fairly useful feature in Common Navigator Framework that we could make use of when dealing with multiple content provider. It allows clients to coordinate state across components that are part of the same logical extension.[1] That is, a content provider might vary how it exposes its content based on the state of a specific property in the model. Interested parties may add themselves as For example, if we want multiple content provider to take instant adjustments and refresh themselves within a specific scope of tree structure and based on a centralized state change, say a Boolean value on one extension, we could simply register a Boolean value to a specific IExtensionStateModel of the sharing content service
Then
[1] Eclipse Platform API specification - IExtensionStateModel December 03 Service Component Architecture
November 20 Memo: Setting up an OpenLDAP serverTo create and run an LDAP server, you must first download and install OpenLDAP to your hard-disk. After installation, you need to do some configuration settings:
July 27 webapp连MySQL 中文乱码问题总结困扰了我两天的MySQL乱码问题终于攻破,在此自我陶醉一下。哎,可惜了当时在场的3人无人能体会此项伟大突破的历史意义。
anyway 还是值得总结一下。
mysql字符集机制设定的“独特性”让我这个原先自认为精通webapp乱码问题的人也头痛了一番。
它的独特性体现在已下几个方面:
mySQL乱码问题分析解决:
不查manual的话,这最后的一条还真是很难想到。 实际项目过程中确实会碰到许多问题并逐步发掘到需要学习的东西,“实践中学习”这句话说得还是极其有道理的。 prospective topic next week -- hibernate + struts应用的lazyinitialization问题
|
|||||||||||
|
|