ITeye博客

RCP

共 9 篇文章

Build Path Errors & Cycle Detected in Build Path of Projects.

Dear All, Am working with migration of our application from WebSphere 4.0 to WebSphere 6.0 using Rational Application Developer(RAD) 6.0. I have multiple folders(Java Projects,EJB Projects, Web Projects etc...) in my RAD workspace,the code is completely error free,but still am facing below errors i…

2009-07-21 15:06 · RCP · Eclipse · EJB · Web · IE · Websphere

往RCP工程中添加jar包

plug-in dependencies中的jar包通过如下方式添加: 这是eclipse的插件依赖,插件依赖就是你这个插件用了其它插件的类,所以你需要依赖于这个其它插件,你需要在plugin.xml中添加进去,就OK了,当时有时候需要先设置好工程依赖(Preferences->Project References)。 其他jar导入方法如下: 自己建一个用户库,把相应的jar包加入到这个库中,以后在别的工程中只要加入这个库,就将相应的jar包都加入了 window-->preferences-->java-->build path-->user libraries 点击new,输入库的名称…

2009-07-20 17:27 · RCP · Eclipse · XML

swt界面编程

(一) 第一步:建立一个Java工程:因为这个是大家都非常熟悉的,所以就不再赘述,你可以建立一个任何名字的Java工程。 第二步:导入swt以及JFace的库文件。这也就意味着:将swt/JFace相关的库文件导入到工程的classpath中去。需要的库文件有哪些呢?打开eclipse安装目录下的plugins文件夹,我们需要找到以下jar文件: org.eclipse.swt_3.x.x.jar org.eclipse.jface_3.x.x.jar org.eclipse.core.runtime_3.x.x.jar org.eclipse.ui.workbench_3.x.x.jar …

2009-07-18 00:40 · RCP · JNI · Windows · Eclipse · 编程 · 设计模式

RCP-显示流线型标签页

//在Application.java中的start方法下修改 public Object start(IApplicationContext context) { Display display = PlatformUI.createDisplay();//显示和eclipse一样的标签页 PlatformUI.getPreferenceStore().setDefault(IWorkbenchPreferenceConstants.ENABLE_ANIMATIONS, true); //不显示传统的窗口.不现实传统的标签样式 PlatformUI.getPreferenceStore()…

2009-07-06 18:24 · RCP · Java · Eclipse

ecliipse RCP在产品化时用了plugin.properties的%keyName无效的解决方案

Localization in RCP plugins is usually done by including translations in a property file and using their id in plugin.xml. I spend some time lately trying to understand why some translations were not used in my application although they were correctly displayed in PDE. Answer : when using plugin.pr…

2009-07-06 14:01 · RCP · Eclipse · XML

在EditorPart中更新ViewPart

在RCP编程中我们经常遇到ViewPart和EditorPart交互的问题,例如:在EditorPart中保存一条记录后,需要刷新对应的ViewPart视图中的数据。 我也是初学RCP编程,在遇到这个问题后我找到了两个解决的办法: 1.给ViewPart增加一个Model对象,利用Observer模式监听Model数据的变化。EditorPart中的数据保存到Model中时将触发监听器刷新ViewPart中的数据。 2.使用Eclipse中的IWorkbenchPart和IWorkbenchPart2接口中的PropertyListener机制。 在ViewPart中打开EditorPart…

2009-06-24 18:02 · RCP · C · C++ · Eclipse · Swing · 编程

往Eclipse RCP视图中添加右键弹出菜单(一)

往eclipse的默认NavigationView中,添加右键菜单项是非常容易的,甚至不需要自己写代码,只要在plugin.xml中添加扩展项便可以了。 但是这远远达不到我们的要求。如果要我们在自己的rcp程序的View中添加右键弹出菜单就不是很容易了。现在我介绍一下如何在一个树视图中针对不同的TreeObject添加不同的右键弹出菜单的方法。 如果不清楚如何构建一个树,请参考 http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/CatalogSWT-JFace-Eclipse.htm , 这里有很多关于eclipse Tree的实例。简单将来…

2009-06-24 17:40 · RCP · Eclipse · UI · XML · JavaScript

RCP中的对话框和消息框

//对话框 MessageBox mb = new MessageBox(PlatformUI.getWorkbench() .getActiveWorkbenchWindow().getShell(), SWT.ICON_QUESTION | SWT.YES | SWT.NO); mb.setText("Confirm Delete"); mb.setMessage("你确认删除吗?"); int buttonID = mb.open(); switch (buttonID) { case SWT.NO: break; case SWT.YES: break; default: break…

2009-06-12 14:50 · RCP

Source Code Guide of Eclipse 3.4 (Ganymede)

Abstract Developers are frequently advised to read existing high-quality code. Having easy access to the Eclipse sources can be extremely helpful in familiarizing yourself with the coding patterns inherent in Eclipse. This article describes how to access the Eclipse source code, how to use the Plug…

2009-06-05 09:06 · RCP · Google · CVS · Eclipse · Access · IDE