加载中!

我是流子吗?我不知道,或许是吧......或许又不是......我真的不知道.
<<  < 2008 - 10 >  >>
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

留言簿

公告

相关新闻

最新日志

最新评论

我的相册

搜索

登陆

友情连接

统计

2008-10-6 10:29:00
RCP中透视图Perspective切换

代码切换透视图:

PlatformUI.getWorkbench().showPerspective("透视图id",
       PlatformUI.getWorkbench().getActiveWorkbenchWindow());

配置文件显示透视图切换按钮:

在rcp项目的根目录新建plugin_customization.ini文件,内容如下:

#设置视图标题栏的弧线型外观
org.eclipse.ui./SHOW_TRADITIONAL_STYLE_TABS = false
#
# 显示在右侧上方 默认为左侧
org.eclipse.ui/DOCK_PERSPECTIVE_BAR=TOP_RIGHT

-------------------

关闭Perspective
IWorkbench w=PlatformUI.getWorkbench();
IPerspectiveRegistry pr=w.getPerspectiveRegistry() ;
IPerspectiveDeor persdes=pr.findPerspectiveWithId("perspectiveID");

WorkbenchPage p=(WorkbenchPage)w.getActiveWorkbenchWindow

().getActivePage();
Perspective persp = p.getActivePerspective();
p.closePerspective(persdes,false,false);

posted @ 2008-10-6 10:29:00 流子 阅读全文 | 回复(0) | 引用通告 | 编辑
发表评论:
加载中!
Powered by Oblog.