8
我该如何在视角中插入编辑器?Eclipse RCP - Perspective中的编辑器
我该如何在视角中插入编辑器?Eclipse RCP - Perspective中的编辑器
编辑并不拘泥于视图之类的观点。透视图是视图的集合,也可以是可视化的编辑器区域。但是,哪些编辑人员随时都可以开放,这是受工作台控制的,而不是视角。
但是,在RCP应用程序中,编辑器区域可见(或不可见)。您可以使用用于自定义屏幕的初始透视图工厂来控制此选项。 (请注意,一个透视通常不打开/关闭通常编辑器区域。)
Here's an example from vogella.de:
public class Perspective implements IPerspectiveFactory {
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
layout.setEditorAreaVisible(true);
layout.setFixed(true);
layout.addStandaloneView(View.ID, false, IPageLayout.LEFT, 1.0f, editorArea);
}
}