spark的自留地(ofbiz/eclipse rcp/shark/opentaps)

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  54 Posts :: 0 Stories :: 112 Comments :: 0 Trackbacks
1、重启RCP应用
PlatformUI.getWorkbench().restart();

2、在插件资源库中查找Perspective(其它extend point资源的获得类似)
IPerspectiveDescriptor ipd = PlatformUI.getWorkbench().getPerspectiveRegistry().findPerspectiveWithId(FavoritePerspective.ID); //根据plugin.xml中的ID查找

3、获得当前RCP应用的shell
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();

4、显示帮助信息
PlatformUI.getWorkbench().getHelpSystem().displayHelp();

posted on 2008-10-15 14:41 shanghai_spark 阅读(1409) 评论(0)  编辑  收藏 所属分类: eclipse rcp

只有注册用户登录后才能发表评论。


网站导航: