Eclipse RCP - 隐藏编辑器

时间:2012-06-12 12:30:11

标签: editor eclipse-rcp

我跟着Vogella RCP Tutorial创建了一个应用程序,像这样lloking:

enter image description here

“透视”中明确添加了“我的视图”。
下面的编辑器是默认的。

问题:

  • 如何禁用默认编辑器?
  • 上面图片的Workbench和Perspective在哪里?

1 个答案:

答案 0 :(得分:6)

以你的观点

public void createInitialLayout(IPageLayout layout) {
        this.layout = layout;

        String editorAreaId = layout.getEditorArea();
        layout.setEditorAreaVisible(false);
}

这会禁用你的编辑器