当前位置:天才代写 > tutorial > JAVA 教程 > Eclipse RCP插件开拓中常常挪用的几个要领

Eclipse RCP插件开拓中常常挪用的几个要领

2017-11-11 08:00 星期六 所属: JAVA 教程 浏览:353

1、重启RCP应用

PlatformUI.getWorkbench().restart();

2、在插件资源库中查找Perspective(其它extend point资源的得到雷同)

IPerspectiveDescriptoripd=PlatformUI.getWorkbench ().getPerspectiveRegistry().findPerspectiveWithId (FavoritePerspective.ID); //按照plugin.xml中的ID查找

3、获恰当前RCP应用的shell

Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow ().getShell();

4、显示辅佐信息

PlatformUI.getWorkbench().getHelpSystem().displayHelp();

 

    关键字:

天才代写-代写联系方式