Java 在application workbench中添加快速视图并在其中添加视图
我有rcp应用程序,它有几个视图。我想像EclipseIDE一样添加一个快速视图选项,这样我就可以将所有视图都放在其中 我尝试了以下所有可能的方法: 在plugin.xml中添加条目Java 在application workbench中添加快速视图并在其中添加视图,java,eclipse-plugin,eclipse-rcp,perspective,Java,Eclipse Plugin,Eclipse Rcp,Perspective,我有rcp应用程序,它有几个视图。我想像EclipseIDE一样添加一个快速视图选项,这样我就可以将所有视图都放在其中 我尝试了以下所有可能的方法: 在plugin.xml中添加条目 <extension point="org.eclipse.ui.perspectiveExtensions"> <perspectiveExtension targetID="my.ui.Perspective"> &
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="my.ui.Perspective">
<view
closeable="true"
id="my.Explorer"
minimized="false"
moveable="true"
ratio="0.95f"
relationship="fast"
relative="org.eclipse.ui.editorss"
showTitle="true"
standalone="true"
visible="true">
</view>
</perspectiveExtension>
</extension>
但它并没有显示出任何异常,甚至是抛出
请尽快数一数我做错了什么。您有一个拼写错误的relative=org.eclipse.ui.editors,它是eclipse的版本。最新版本不再支持快速视图。@greg-449支持Eclipse3.5。如果不可行,那么有什么其他方法可以获得快捷方式,然后显示视图选项。
@Override
public void preWindowOpen(IWorkbenchWindowConfigurer configurer) {
configurer.setInitialSize(new Point(1024, 800));
configurer.setShowStatusLine(true);
configurer.setTitle("My application");
configurer.setShowFastViewBars(true);
}