ITeye博客

eclipse rcp

共 9 篇文章

Eclipse的Command应用教程(二)

Eclipse Advanced Commands This article describes use cases for Eclipse commands which go beyond the simple one for adding commands to menus, toolbars, etc. This article is based on Eclipse Indigo (3.7). Table of Contents 1. Eclipse Commands 2. Enabled when (visible when) 3. Eclipse standard command…

2011-09-26 18:08 · eclipse rcp

Eclipse的Command应用教程(一)

Eclipse Commands This article describes the usage of Eclipse commands. It describes how to create commands, handlers, add commands into the menu, pop-ups, views and editors and the usage of expressions to restrict UI contributions. This article is based on Eclipse Helios (3.6). Table of Contents 1.…

2011-09-26 18:06 · eclipse rcp

在Eclipse RCP中应用Spring OSGI 管理bean(二)

在文章一中,引用了Ralf Ebert的文章,讲述了整个实现的机制和原理,我在实际的实验工程中,遇到了一些问题,真实的记录下来,为后来者戒。 1、在把org.eclipse.springframework.util插件导入自己的workspace中时,如果没有在自己的eclipse runtime中设置spring bundle的位置,工程会报错,找不到导入的包。于是找到spring 3.0.4版本的bundle,加入到runtime中;第二部分要加入runtime的是spring osgi 的bundle,现在的版本是2.0,而比较稳定的是1.2.1;第三部分需要加入runtime的bun…

2011-09-20 16:36 · eclipse rcp

在Eclipse RCP中应用Spring OSGI 管理bean(一)

经过对OSGI Host的研究,把Equinox、spring osgi等技术整合起来,进行了java系统模块化开发研究。于是,进一步想如何利用spring osgi和Eclipse RCP整合起来应用呢?于是在网上查找响应的资料,不是很多,发现了下面这篇文章,写的非常到位,拷贝如下,为尊重原创作者,标明原始url如下: http://www.ralfebert.de/blog/eclipsercp/spring_osgi/ 在完成实验工程的过程中,遇到了一些问题,进行了整理,是为文章系列二。 Spring is not only a helpful framework for the se…

2011-09-20 16:10 · eclipse rcp

osgi控制台在RCP程序中开发的应用

OSGi的实现本身有一个控制台,提供插件的查看和管理功能。而Eclipse是基于OSGi的平台应用,这样我们可以使用这个控制台辅助进行插件的管理,调试等工作… 一、管理和诊断 从事插件开发的各位同行也许都遇到过这样的问题:某 个插件在发布以后无法启动,在Eclipse的插件列表中也看不到。这种情况一般是插件打包的时候出错,或者插件的依赖项不能满足。 如果项目的插件本身就比较多,或者依赖项比较多,这种问题查起来就非常痛苦。(Eclipse的插件列表会自动忽略某些无法启动的插件,无法通过 Eclipse本身的插件列表排查问题) 而OSGi的控制台,允许你通过命令行的方式,对插件进行安装,卸载,启…

2011-09-20 16:01 · eclipse rcp

利用maven管理eclipse rcp开发时的lib的问题解决

在eclipse中开发rcp系统时,直接引入第三方的包,需要在runtime中的classpath上增加相应lib的引用。而用maven对项目进行管理时,系统开发引用的类是放在maven的repository中的,直接在项目的classpath中无法添加。此时的一个解决方案是,在系统中建立一个link,把repository的位置引入到工程中,则可以进行相应的lib添加了。

2010-02-04 18:15 · eclipse rcp · Eclipse · 项目管理 · maven

Eclipse RCP界面的布局的理解

EclipseUI可以分成三个层次:workbenchwindow层次、perspective层次和part层次。 1、在workbenchwindow层次的定义,对于整个系统都是有效的,在EclipseRCP中,这一部分工作主要通过ApplicationActionBarAdvisor、ApplicationWorkbenchWindowAdvisor、WorkbenchWindowAdvisor这三个类进行定义,例如系统的初始perspective、系统全局的菜单、系统全局的toolbar和statusbar,系统启动时的大小等全局方面的属性。 2、在perspective层次定义本pe…

2010-02-03 16:30 · eclipse rcp · 工作 · Eclipse · UI

Eclipse中viewpart和editorpart的区别

1、editorpart可以有自己的contributorClass,在其中可以定义自己的菜单、工具条、statusbar等资源,在view中没有这个设置项。 2、editorpart可以对在其中编辑的东西进行保存操作。

2010-02-03 15:03 · eclipse rcp · Eclipse

在Eclipse rcp程序启动时,打开自定义的EditorPart的方法

在Eclipse rcp启动时,对于系统默认启动的Perspective,可以通过增加各种viewpart,在系统启动时,打开自定义的view。但是在createInitialLayout(ILayout layout)方法中,利用layout无法传入自定义的editorpart,替换系统默认的"org.eclipse.ui.editorss”editor,于是如何打开自定义的editorpart成了一个问题。 在分析打开自定义的editorpart的方法调用时:PlatformUI.getWrokbench().getActiveWorkbenchWindow().getActivePag…

2010-02-03 13:49 · eclipse rcp · Eclipse · UI