在RCP开发中,会要求对特定的perspective 进行自定义设置,比如显示、隐藏某个菜单等,这些操作都可以通过在Window菜单下的Customize Perspective 菜单项实现。如果想设定默认的透视图的状态,可以使用org.eclipse.ui.perspectiveExtensions扩展点。
Eclipse Doc写道
This extension point is used to extend perspectives registered by other plug-ins. A perspective defines the initial contents of the window action bars (menu and toolbar) and the initial set of views and their layout within a workbench page. Other plug-ins may contribute actions or views to the perspective which appear when the perspective is selected. Optional additions by other plug-ins are appended to the initial definition.
一个示例:
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.ui.resourcePerspective"> <!-- 目标透视图-->
<actionSet id="org.eclipse.jdt.ui.JavaActionSet"/> <!-- 显示JavaActionSet相关的菜单-->
<viewShortcut id="org.eclipse.jdt.ui.PackageExplorer"/>
<newWizardShortcut id="org.eclipse.jdt.ui.wizards.NewProjectCreationWizard"/>
<perspectiveShortcut id="org.eclipse.jdt.ui.JavaPerspective"/>
<view id="org.eclipse.jdt.ui.PackageExplorer"
relative="org.eclipse.ui.views.ResourceNavigator"
relationship="stack"/>
<view id="org.eclipse.jdt.ui.TypeHierarchy"
relative="org.eclipse.ui.views.ResourceNavigator"
relationship="left"
ratio="0.50"/>
</perspectiveExtension>
</extension>
分享到:
相关推荐
perspective属性及相关的perspective-origin属性都是用来控制3D图形空间中坐标轴上的距离的,下面我们就来详解CSS3的perspective属性设置3D变换距离的方法,当然后面也会讲到perspective-origin的用法:
A Conceptual Perspective
Perspective approximations
Perspective切换
用来展示通过OpenCv实现的perspective effect 透视效果
Processor Microarchitecture: An Implementation Perspective
myeclipse 自定义视图Customize Perspective 没有反应-附件资源
React Native透视图裁剪器 :triangular_ruler: :framed_picture: 允许您执行自定义图像裁剪和透视校正的组件!旨在与React Native Document Scanner一起使用安装 :rocket: :rocket: $ npm install react-native-...
this paper we introduce perspective shadow maps, which are generated in normalized device coordinate space, i.e., after perspective transformation. This results in important reduction of shadow map ...
Mechine Learning A Bayesian and optimization perspective
source code for the book "Machine Learning: An Algorithmic Perspective
Learning with Submodular Functions: A Convex Optimization Perspective
Modern Compressible Flow With Historical Perspective 3rd John D. Anderson, Jr.
Computer Systems A Programmer's Perspective(2nd) 英文无水印pdf 第2版 pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自...
Machine Learning - A Probab ilistic Perspective
DIGITAL INTEGRATED CIRCUITS : A DESIGN PERSPECTIVE 2ND 完美pdf
Computer Systems A Programmer's Perspective Third Edition.pdf 深入理解计算机系统(原书第2版)的英文版本. 程序员必读经典著作!理解计算机系统*书目,10万程序员共同选择。 作者:(美)兰德尔?E.布莱恩特...
Processor Microarchitecture An Implementation Perspective 是计算机体系结构系列图书中的一本