Java 类org.eclipse.ui.IViewLayout 实例源码

项目:yamcs-studio    文件:Perspective.java   
@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);
}
项目:olca-app    文件:RcpPerspective.java   
@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);
}
项目:hestia-engine-dev    文件:Perspective.java   
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);
}
项目:OpenSPIFe    文件:ViewCapturingLayout.java   
@Override
public IViewLayout getViewLayout(String id) {
    return this;
}