@Override public void createInitialLayout(IPageLayout layout) { String viewId = "org.yamcs.studio.products.eventviewer.sample"; layout.setEditorAreaVisible(false); layout.setFixed(true); layout.addStandaloneView(viewId, false, IPageLayout.TOP, 1, IPageLayout.ID_EDITOR_AREA); IViewLayout view = layout.getViewLayout(viewId); view.setCloseable(false); view.setMoveable(false); }
@Override public void createInitialLayout(final IPageLayout layout) { String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(true); layout.setFixed(false); IFolderLayout naviFolder = layout.createFolder("Navigation", IPageLayout.LEFT, 0.31f, editorArea); naviFolder.addView(Navigator.ID); IViewLayout naviLayout = layout.getViewLayout(Navigator.ID); naviLayout.setCloseable(false); naviLayout.setMoveable(false); // outline place holder layout.addPlaceholder(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.8f, editorArea); }
public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(true); layout.setFixed(true); IFolderLayout folderLeft = layout.createFolder("left", IPageLayout.LEFT, .2f, editorArea); //$NON-NLS-1$ folderLeft.addView(NavigationView.ID); // Make it not moveable and closeable IViewLayout navView = layout.getViewLayout(NavigationView.ID); navView.setCloseable(false); navView.setMoveable(false); }
@Override public IViewLayout getViewLayout(String id) { return this; }