如何隐藏未使用的 placeholders/folders Eclipse RCP/RAP

How to hide unused placeholders/folders Eclipse RCP/RAP

我正在努力只堆叠两个视图,只将它们放在一个视图中 window,不显示其他 placeholder/folder。

我的观点是这样的:

public class PerspectiveNew implements IPerspectiveFactory {
  public void createInitialLayout(IPageLayout layout) {
    IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.TOP, 1.0F, IPageLayout.ID_EDITOR_AREA);
    folderLayout.addView(MyView1.ID);
    folderLayout.addView(MyView2.ID);
  }
}

当我打开我的 RCP 应用程序时,我仍然看到底部占位符。如何摆脱它?

public class PerspectiveNew implements IPerspectiveFactory {
  public void createInitialLayout(IPageLayout layout) {
    IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.TOP, 1.0F, IPageLayout.ID_EDITOR_AREA);
    folderLayout.addView(MyView1.ID);
    folderLayout.addView(MyView2.ID);
    layout.setEditorAreaVisible(false); // Turn-off visibility of other placeholders/folders
  }
}