public void createInitialLayout(final IPageLayout layout) { final String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.addStandaloneView(ModelTreeView.ID, true, IPageLayout.BOTTOM, 0.1f, editorArea); final IFolderLayout folder = layout.createFolder("modelViews", IPageLayout.RIGHT, 0.2f, ModelTreeView.ID); folder.addPlaceholder(Model3DView.ID + ":*"); folder.addView(Model3DView.ID); layout.addStandaloneView( GeneratorTreeView.ID, true, IPageLayout.BOTTOM, 0.7f, ModelTreeView.ID); layout.addStandaloneView(SelectionModeView.ID, false, IPageLayout.TOP, 0.95f, editorArea); layout.getViewLayout(SelectionModeView.ID).setCloseable(false); layout.addStandaloneView( ToolControlView.ID, false, IPageLayout.RIGHT, 0.01f, SelectionModeView.ID); layout.getViewLayout(ToolControlView.ID).setCloseable(false); final IPlaceholderFolderLayout toolFolder = layout.createPlaceholderFolder("tools", IPageLayout.RIGHT, 0.01f, ToolControlView.ID); toolFolder.addPlaceholder(ToolSelectionView.ID + ":*"); // toolFolder.addView(ToolSelectionView.ID); layout.addStandaloneView(SelectionInfoView.ID, true, IPageLayout.RIGHT, 0.8f, "modelViews"); final IFolderLayout optionFolder = layout.createFolder("optionViews", IPageLayout.BOTTOM, 0.1f, SelectionInfoView.ID); optionFolder.addView(NodeOptionView.ID); optionFolder.addView(ToolOptionView.ID); layout.addShowViewShortcut(Model3DView.ID); layout.addShowViewShortcut(ModelTreeView.ID); }
public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.setFixed(true); layout.addStandaloneView(View.ID, false, IPageLayout.LEFT, 1.0f, editorArea); }
@Override public void createInitialLayout(IPageLayout aLayout) { String editorArea = aLayout.getEditorArea(); aLayout.setEditorAreaVisible(true); aLayout.addStandaloneView(ContactsListView.VIEW_ID, true, IPageLayout.LEFT, 0.25f, editorArea); aLayout.getViewLayout(ContactsListView.VIEW_ID).setCloseable(false); }
@Override public void createInitialLayout(IPageLayout layout) { // Get the editor area. String editorArea = layout.getEditorArea(); String folderId = "iFFolder"; IFolderLayout iFFolder = layout.createFolder( folderId, //$NON-NLS-1$ IPageLayout.LEFT, 0.5f, editorArea); iFFolder.addView(IFConfigurationView.ID); // iFFolder.addView(UMLConfigurationView.ID); layout.addStandaloneView( "fr.irit.ifclipse.views.NavigatorView", true /* show title */, IPageLayout.LEFT, 1.0f, editorArea); layout.addStandaloneView( DiagnosticView.ID, true, IPageLayout.RIGHT, 0.30f, IFConfigurationView.ID); layout.addView(ScenarioView.ID, IPageLayout.RIGHT, 0.75f, editorArea); layout.addView(IFTransitionsView.ID, IPageLayout.BOTTOM, 0.54f, DiagnosticView.ID); IFolderLayout dynamicViewsFolder = layout.createFolder( "dynamicViewsFolder", //$NON-NLS-1$ IPageLayout.BOTTOM, 0.6f, folderId); dynamicViewsFolder.addPlaceholder(DynamicView.ID); IFolderLayout bottom = layout.createFolder( "bottom", //$NON-NLS-1$ IPageLayout.BOTTOM, 0.5f, IFTransitionsView.ID); bottom.addView(IPageLayout.ID_PROJECT_EXPLORER); bottom.addView(IPageLayout.ID_PROP_SHEET); bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW); layout.setEditorAreaVisible(true); }
public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.addStandaloneView(NavigationView.ID, false, IPageLayout.LEFT, 0.25f, editorArea); IFolderLayout folder = layout.createFolder("messages", IPageLayout.TOP, 0.5f, editorArea); folder.addPlaceholder(View.ID + ":*"); folder.addView(View.ID); // new File("").getParent()getAbsolutePath() layout.getViewLayout(NavigationView.ID).setCloseable(false); }
/* * (non-Javadoc) * * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout) */ public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(true); layout.setFixed(false); layout.addStandaloneView( IStudioConstants.STUDIO_MENU_NAVIGATOR_ID, true, IPageLayout.LEFT, 0.15f, layout.getEditorArea()); layout.addPerspectiveShortcut(IStudioConstants.STUDIO_PERSPECTIVE_ID); IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, layout.getEditorArea()); bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW); bottom.addView("org.eclipse.pde.runtime.LogView"); bottom.addView("org.eclipse.ui.views.ProblemView"); bottom.addView(XjcFieldViewPart.ID); layout.addStandaloneView( EngineConstants.CONTENT_OUT_LINE, true, IPageLayout.RIGHT, 0.70f, layout.getEditorArea()); }
public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.addStandaloneView(NavigationView.ID, false, IPageLayout.LEFT, 0.25f, editorArea); IFolderLayout folder = layout.createFolder("messages", IPageLayout.TOP, 0.5f, editorArea); folder.addPlaceholder(View.ID + ":*"); folder.addView(View.ID); // Add the "pure" e4 part to the perspective. The given view ID is matching the PartDescriptor // ID in "MyLegacyIDE.e4xmi" IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.70f, editorArea); bottom.addView("simplercpapp.puree4part"); layout.getViewLayout(NavigationView.ID).setCloseable(false); }
public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.addStandaloneView("HelloRAP.view1", false, IPageLayout.LEFT, 0.95f, editorArea); }
@Override public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(false); layout.setFixed(true); layout.addStandaloneView(MapView.ID, false, IPageLayout.LEFT, 1.0f, layout.getEditorArea()); }
public void createInitialLayout(IPageLayout layout) { layout.addStandaloneView( ExampleViewPart.ID, false, IPageLayout.LEFT, .3F, IPageLayout.ID_EDITOR_AREA); layout.setEditorAreaVisible(false); }
public void createInitialLayout(IPageLayout factory) { // factory.addShowViewShortcut(PLOT_VIEW_ID); factory.addPerspectiveShortcut(EXPERIMENT_PERSPECTIVE_ID); // factory.addStandaloneView(CONTROL_VIEW_ID, false, // IPageLayout.BOTTOM, 0.70f, factory.getEditorArea()); factory.addStandaloneView( ID_VIEW_ACTIVITY_MONITOR, false, IPageLayout.BOTTOM, 0.70f, factory.getEditorArea()); factory.addStandaloneView( SICS_TERMINAL_VIEW_ID, false, IPageLayout.LEFT, 0.50f, ID_VIEW_ACTIVITY_MONITOR); factory.addStandaloneView( PROJECT_EXPLORER_VIEW_ID, true, IPageLayout.LEFT, 0.5f, SICS_TERMINAL_VIEW_ID); // factory.addStandaloneView(WORKFLOW_VIEW_ID, true, // IPageLayout.TOP, 0.99f, factory.getEditorArea()); factory.addStandaloneView( SICS_BUFFER_RUNNER, true, IPageLayout.RIGHT, 0.502f, factory.getEditorArea()); // IFolderLayout bottomCenter = factory.createFolder("bottomCenter", // IPageLayout.LEFT, 0.382f, PLOT_VIEW_ID + ":3"); // bottomCenter.addView(ANALYSIS_PARAMETERS_VIEW_ID); // factory.addStandaloneView(FILTERED_STATUS_MONITOR_VIEW_ID, false, // IPageLayout.BOTTOM, 0.493f, PLOT_VIEW_ID + ":2"); // // IWorkbench workbench = PlatformUI.getWorkbench(); // IEditorInput input = new NullEditorInput(); String makeNewEditor = System.getProperty("gumtree.echidna.openNewEditor", "false"); if (Boolean.parseBoolean(makeNewEditor)) { try { IFileEditorInput input = getFileStorage(0); PlatformUI.getWorkbench() .getActiveWorkbenchWindow() .getActivePage() .openEditor(input, ID_TCL_EDITOR); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } // workbench.getActiveWorkbenchWindow().addPerspectiveListener(new IPerspectiveListener() { // // @Override // public void perspectiveChanged(IWorkbenchPage page, // IPerspectiveDescriptor perspective, String changeId) { // // TODO Auto-generated method stub // // } // // @Override // public void perspectiveActivated(IWorkbenchPage page, // IPerspectiveDescriptor perspective) { // // TODO Auto-generated method stub // // } // }); // try { // PlatformUI.getWorkbench().getActiveWorkbenchWindow().; // } catch ( Exception e ) { // e.printStackTrace(); // } // factory.addStandaloneView(EXPORT_ALL_VIEW_ID, false, // IPageLayout.BOTTOM, 0.94f, factory.getEditorArea()); // factory.addView(WORKFLOW_VIEW_ID, IPageLayout.TOP, 1f, factory.getEditorArea()); // factory.addStandaloneView(FILTERED_STATUS_MONITOR_VIEW_ID, false, // IPageLayout.BOTTOM, 0.663f, WORKFLOW_VIEW_ID); // IFolderLayout bottomLeft = factory.createFolder( // "bottomLeft", //NON-NLS-1 // IPageLayout.BOTTOM, // 0.663f, // WORKFLOW_VIEW_ID); // bottomLeft.addView(FILTERED_STATUS_MONITOR_VIEW_ID); // IFolderLayout bottomLeft2 = factory.createFolder( // "bottomLeft2", //NON-NLS-1 // IPageLayout.RIGHT, // 0.53f, // "bottomLeft"); // bottomLeft2.addView(SICS_TERMINAL_VIEW_ID); // IPerspectiveDescriptor descriptor = factory.getDescriptor(); // try { // PlotManager.resetPlotViewId(); // kakadu.loadAlgorithm(cicada.loadAlgorithm("Online Reduction"), descriptor); // AlgorithmTask task = ProjectManager.getCurrentAlgorithmTask(); // task.runAlgorithm(); //// ExportAllView.setAlgorithmTask(task); // } catch (NoneAlgorithmException e) { // e.printStackTrace(); // } // factory.setEditorAreaVisible(false); // factory.getViewLayout(CONTROL_VIEW_ID).setCloseable(false); // factory.getViewLayout(WORKFLOW_VIEW_ID).setCloseable(false); // factory.getViewLayout(WORKFLOW_VIEW_ID).setMoveable(false); // factory.getViewLayout(PROJECT_EXPLORER_VIEW_ID).setCloseable(false); // factory.getViewLayout(PROJECT_EXPLORER_VIEW_ID).setMoveable(false); // factory.getViewLayout(SICS_BUFFER_RUNNER).setCloseable(false); // factory.getViewLayout(SICS_BUFFER_RUNNER).setMoveable(false); factory.setEditorAreaVisible(true); // factory.getViewLayout(FILTERED_STATUS_MONITOR_VIEW_ID).setCloseable(false); // factory.getViewLayout(ANALYSIS_PARAMETERS_VIEW_ID).setCloseable(false); // factory.setFixed(true); }
@Override public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); layout.addStandaloneView(ProjectExplorerViewPart.ID, true, IPageLayout.LEFT, 0.25f, editorArea); }