org.eclipse.ui.IFolderLayout Java Examples
The following examples show how to use
org.eclipse.ui.IFolderLayout.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GdbPerspectiveFactory.java From tracecompass with Eclipse Public License 2.0 | 6 votes |
@Override public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(true); // Create the project folder IFolderLayout projectFolder = layout.createFolder(ProjectFolder, IPageLayout.LEFT, 0.15f, EditorArea); projectFolder.addView(PROJECT_VIEW_ID); // Create the console folder IFolderLayout consoleFolder = layout.createFolder(ConsoleFolder, IPageLayout.BOTTOM, 0.50f, ProjectFolder); consoleFolder.addView(CONSOLE_VIEW_ID); // Create the debug folder IFolderLayout debugFolder = layout.createFolder(DebugFolder, IPageLayout.TOP, 0.50f, EditorArea); debugFolder.addView(DEBUG_VIEW_ID); // Create the middle right folder IFolderLayout traceControlFolder = layout.createFolder(TraceControlFolder, IPageLayout.RIGHT, 0.50f, DebugFolder); traceControlFolder.addView(TRACE_CONTROL_VIEW_ID); layout.addNewWizardShortcut(NewTmfProjectWizard.ID); }
Example #2
Source File: ExamplePerspective.java From dawnsci with Eclipse Public License 1.0 | 6 votes |
/** * Creates the initial layout for a page. */ public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(false); addFastViews(layout); addViewShortcuts(layout); addPerspectiveShortcuts(layout); { IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.LEFT, 0.5f, IPageLayout.ID_EDITOR_AREA); folderLayout.addView("org.dawnsci.plotting.examples.xyExample"); folderLayout.addView("org.dawnsci.plotting.examples.xyUpdateExample"); folderLayout.addView("org.dawnsci.plotting.examples.axisExample"); folderLayout.addView("org.dawnsci.plotting.examples.barExample"); folderLayout.addView("org.dawnsci.plotting.examples.imageExample"); folderLayout.addView("org.dawnsci.plotting.examples.sectorExample"); folderLayout.addView("org.dawnsci.plotting.examples.surfaceExample"); folderLayout.addView("org.dawnsci.plotting.examples.vectorExample"); folderLayout.addView("org.dawnsci.plotting.examples.compositeExample"); folderLayout.addView("org.dawnsci.plotting.examples.volumeExample"); folderLayout.addView("org.dawnsci.plotting.examples.plane3DExample"); } }
Example #3
Source File: TSPerspective.java From tmxeditor8 with GNU General Public License v2.0 | 6 votes |
/** * TS默认透视图。 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout) */ public void createInitialLayout(IPageLayout layout) { // layout.createFolder() 默认显示。 // layout.createPlaceholderFolder() 默认不显示。 String editor = layout.getEditorArea(); String rightFirst = "RIGHT_TOP"; String left = "LEFT"; // String bottom = "RIGHT_BOTTOM"; IFolderLayout leftFolder = layout.createFolder(left, IPageLayout.LEFT, 0.20F, editor); IFolderLayout topFirstFolder = layout.createFolder(rightFirst, IPageLayout.TOP, 0.3F, editor); // 显示术语匹配结果视图 // IFolderLayout bottomFolder = layout // .createFolder(bottom, IPageLayout.TOP, 0.65F, editor); // IPlaceholderFolderLayout pLayout = layout.createPlaceholderFolder(bottom, IPageLayout.RIGHT, 0.65F, editor); leftFolder.addView("net.heartsome.cat.common.ui.navigator.view"); // 导航视图 topFirstFolder.addView("net.heartsome.cat.ts.ui.translation.view.matchview"); // bottomFolder.addView("net.heartsome.cat.ts.ui.term.view.termView"); // 术语匹配视图 // pLayout.addPlaceholder("net.heartsome.cat.ts.ui.qa.views.QAResultViewPart"); }
Example #4
Source File: BriefePerspektive.java From elexis-3-core with Eclipse Public License 1.0 | 6 votes |
public void createInitialLayout(IPageLayout layout){ layout.setEditorAreaVisible(false); layout.setFixed(false); IFolderLayout left = layout.createFolder("Links.folder", IPageLayout.LEFT, 0.3f, IPageLayout.ID_EDITOR_AREA); IFolderLayout main = layout.createFolder("Haupt.Folder", IPageLayout.LEFT, 0.7f, IPageLayout.ID_EDITOR_AREA); left.addView(BriefAuswahl.ID); main.addView(TextView.ID); main.addView(TextTemplateView.ID); layout.addPerspectiveShortcut(ID); layout.addShowViewShortcut(UiResourceConstants.PatientDetailView2_ID); layout.addShowViewShortcut(KonsDetailView.ID); layout.addShowViewShortcut(BriefAuswahl.ID); layout.addShowViewShortcut(TextView.ID); }
Example #5
Source File: ReportRCPPerspective.java From birt with Eclipse Public License 1.0 | 6 votes |
/** * Defines the initial layout for a page. */ private void defineLayout( IPageLayout layout ) { // Editors are placed for free. String editorArea = layout.getEditorArea( ); // Top left. IFolderLayout topLeft = layout.createFolder( "topLeft", IPageLayout.LEFT, (float) 0.26, editorArea );//$NON-NLS-1$ topLeft.addView( PaletteView.ID ); topLeft.addView( DataView.ID ); topLeft.addView( LibraryExplorerView.ID ); // Bottom left. IFolderLayout bottomLeft = layout.createFolder( "bottomLeft", IPageLayout.BOTTOM, (float) 0.50,//$NON-NLS-1$ "topLeft" );//$NON-NLS-1$ bottomLeft.addView( IPageLayout.ID_OUTLINE ); // Bottom right. IFolderLayout bootomRight = layout.createFolder( "bootomRight", IPageLayout.BOTTOM, (float) 0.66, editorArea );//$NON-NLS-1$ bootomRight.addView( AttributeView.ID ); }
Example #6
Source File: WebPerspectiveFactory.java From APICloud-Studio with GNU General Public License v3.0 | 6 votes |
public void createInitialLayout(IPageLayout layout) { // Get the editor area String editorArea = layout.getEditorArea(); // Left IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.20f, editorArea); //$NON-NLS-1$ left.addView(IPageLayout.ID_PROJECT_EXPLORER); left.addPlaceholder(APP_EXPLORER_ID); left.addPlaceholder("com.aptana.ui.io.remoteview"); //$NON-NLS-1$ // Bottom right: Console. Had to leave this programmatic to get the Console appear in bottom right IFolderLayout bottomArea = layout.createFolder("terminalArea", IPageLayout.BOTTOM, 0.75f, //$NON-NLS-1$ editorArea); bottomArea.addView(IConsoleConstants.ID_CONSOLE_VIEW); bottomArea.addPlaceholder("com.aptana.terminal.views.terminal:*"); //$NON-NLS-1$ UIUtils.setCoolBarVisibility(true); }
Example #7
Source File: AbrechnungsPerspektive.java From elexis-3-core with Eclipse Public License 1.0 | 6 votes |
public void createInitialLayout(IPageLayout layout){ layout.setEditorAreaVisible(false); layout.setFixed(false); IFolderLayout fld = layout.createFolder("AbrechnungsFolder", IPageLayout.LEFT, 0.6f, IPageLayout.ID_EDITOR_AREA); IFolderLayout frd = layout.createFolder("Detailfolder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA); fld.addView(PatHeuteView.ID); fld.addView(KonsZumVerrechnenView.ID); fld.addView(RechnungsListeView.ID); frd.addView(RnDetailView.ID); frd.addView(KonsDetailView.ID); frd.addPlaceholder(FallDetailView.ID); frd.addPlaceholder(UiResourceConstants.PatientDetailView2_ID); layout.addShowViewShortcut(PatHeuteView.ID); layout.addShowViewShortcut(KonsZumVerrechnenView.ID); layout.addShowViewShortcut(RnDetailView.ID); layout.addShowViewShortcut(KonsDetailView.ID); layout.addShowViewShortcut(RechnungsListeView.ID); }
Example #8
Source File: PerspectiveFactory.java From lapse-plus with GNU General Public License v3.0 | 6 votes |
public void createInitialLayout(IPageLayout layout) { // Get the editor area. String editorArea = layout.getEditorArea(); IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, editorArea); bottom.addView(PROVENANCE_TRACKER_VIEW_ID); bottom.addView(SOURCE_VIEW_ID); bottom.addView(SINK_VIEW_ID); //bottom.addView(MARKER_VIEW_ID); bottom.addView(IPageLayout.ID_TASK_LIST); bottom.addPlaceholder(IPageLayout.ID_PROBLEM_VIEW); // Add the favorites action set //layout.addActionSet(FAVORITES_ACTION_ID); layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.85f, editorArea); }
Example #9
Source File: PythonPerspectiveFactory.java From Pydev with Eclipse Public License 1.0 | 6 votes |
/** * @param layout * @param editorArea */ public void defineLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, (float) 0.26, editorArea); //$NON-NLS-1$ topLeft.addView("org.python.pydev.navigator.view"); IFolderLayout outputfolder = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$ //outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW); outputfolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID); outputfolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW); outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS); outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID); //Add the outline only if we're not using the minimap. if (!MinimapOverviewRulerPreferencesPage.getShowMinimapContents()) { layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float) 0.75, editorArea); } }
Example #10
Source File: SimulationPerspectiveFactory.java From statecharts with Eclipse Public License 1.0 | 6 votes |
private void defineLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.16f, editorArea); left.addView(IPageLayout.ID_PROJECT_EXPLORER); // Included to get rid of a warning issued by the workbench left.addPlaceholder("org.eclipse.jdt.ui.PackageExplorer"); IFolderLayout bottomleft = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, 0.68f, "left"); bottomleft.addView(IPageLayout.ID_OUTLINE); IFolderLayout bottomRight = layout.createFolder("right", IPageLayout.RIGHT, 0.76f, editorArea); bottomRight.addView("org.yakindu.sct.simulation.ui.declarationview"); bottomRight.addView("org.eclipse.debug.ui.BreakpointView"); bottomRight.addView("org.yakindu.sct.simulation.snapshots.ui.snapshotsview"); bottomRight.addPlaceholder("org.eclipse.debug.ui.DebugView"); }
Example #11
Source File: ModelingPerspectiveFactory.java From statecharts with Eclipse Public License 1.0 | 6 votes |
private void defineLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.16f, editorArea); left.addView(IPageLayout.ID_PROJECT_EXPLORER); // Included to get rid of a warning issued by the workbench left.addPlaceholder("org.eclipse.jdt.ui.PackageExplorer"); IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, 0.84f, editorArea); right.addView(IPageLayout.ID_OUTLINE); IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.65f, editorArea); bottom.addView(IPageLayout.ID_PROP_SHEET); bottom.addView(IPageLayout.ID_PROBLEM_VIEW); bottom.addView(IPageLayout.ID_TASK_LIST); }
Example #12
Source File: ControlPerspectiveFactory.java From tracecompass with Eclipse Public License 2.0 | 6 votes |
@Override public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(true); // Create the top left folder IFolderLayout topLeftFolder = layout.createFolder( "topLeftFolder", IPageLayout.LEFT, 0.15f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ topLeftFolder.addView(PROJECT_VIEW_ID); // Create the bottom left folder IFolderLayout bottomLeftFolder = layout.createFolder( "bottomLeftFolder", IPageLayout.BOTTOM, 0.70f, "topLeftFolder"); //$NON-NLS-1$ //$NON-NLS-2$ bottomLeftFolder.addView(CONTROL_VIEW_ID); // Create the bottom right folder IFolderLayout bottomRightFolder = layout.createFolder( "bottomRightFolder", IPageLayout.BOTTOM, 0.50f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ bottomRightFolder.addView(PROPERTIES_VIEW_ID); }
Example #13
Source File: LangPerspective.java From goclipse with Eclipse Public License 1.0 | 6 votes |
protected void addViewStructure(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout leftFolder = layout.createFolder("leftPane", IPageLayout.LEFT, 0.25f, editorArea); leftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER); IFolderLayout bottomFolder = layout.createFolder("bottomPane", IPageLayout.BOTTOM, 0.75f, editorArea); bottomFolder.addView(IPageLayout.ID_PROBLEM_VIEW); bottomFolder.addView(IPageLayout.ID_TASK_LIST); bottomFolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID); bottomFolder.addView(IPageLayout.ID_PROGRESS_VIEW); bottomFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW); // Create outline after bottom pane layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.75f, editorArea); }
Example #14
Source File: ScadaPerspectiveFactory.java From neoscada with Eclipse Public License 1.0 | 6 votes |
@SuppressWarnings ( "deprecation" ) @Override public void createInitialLayout ( final IPageLayout factory ) { final IFolderLayout topLeft = factory.createFolder ( "topLeft", IPageLayout.LEFT, 0.25f, factory.getEditorArea () ); topLeft.addPlaceholder ( IPageLayout.ID_RES_NAV ); topLeft.addView ( JavaUI.ID_PACKAGES ); topLeft.addPlaceholder ( JavaUI.ID_TYPE_HIERARCHY ); topLeft.addView ( "org.eclipse.scada.core.ui.connection.ConnectionView" ); //$NON-NLS-1$ final IFolderLayout bottom = factory.createFolder ( "bottomRight", IPageLayout.BOTTOM, 0.75f, factory.getEditorArea () ); bottom.addView ( "org.eclipse.pde.runtime.LogView" ); //$NON-NLS-1$ bottom.addView ( IPageLayout.ID_TASK_LIST ); bottom.addView ( IPageLayout.ID_PROBLEM_VIEW ); factory.addView ( IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.75f, factory.getEditorArea () ); factory.addNewWizardShortcut ( "org.eclipse.pde.ui.NewProjectWizard" ); //$NON-NLS-1$ factory.addNewWizardShortcut ( "org.eclipse.pde.ui.NewFeatureProjectWizard" ); //$NON-NLS-1$ }
Example #15
Source File: DeveloperStudioPerspective.java From devstudio-tooling-ei with Apache License 2.0 | 6 votes |
@Override public void createInitialLayout(IPageLayout layout) { //Handling Win32 OS specifically since animated dashboard doesn't support if (Platform.getOS().equals(Platform.OS_WIN32)) { final IIntroPart introPart = PlatformUI.getWorkbench().getIntroManager().getIntro(); PlatformUI.getWorkbench().getIntroManager().closeIntro(introPart); IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); IWorkbenchPage page = window.getActivePage(); try { hideDashboards(); PlatformUI.getWorkbench().showPerspective(J2EE_PERSPECTIVE_ID, window); page.openEditor(new NullEditorInput(), CLASSIC_DASHBOARD_ID); } catch (Exception e) { MessageDialog.openError(window.getShell(), "Could not create initial layout", e.getMessage()); } } else { String editorArea = layout.getEditorArea(); IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 1f, editorArea); topLeft.addView(ANIMATED_DASHBOARD_ID); } }
Example #16
Source File: PerspectiveJavaFactory.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
@Override public void createInitialLayout(final IPageLayout layout) { final String editorArea = layout.getEditorArea(); final IFolderLayout leftFolder = layout.createFolder("left", IPageLayout.LEFT, getExplorerViewRatio(), editorArea); //$NON-NLS-1$ leftFolder.addView("org.bonitasoft.studio.application.project.explorer"); final IFolderLayout bottomfolder = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$ bottomfolder.addView("org.eclipse.ui.views.ProblemView"); if (RepositoryManager.getInstance().getCurrentRepository().isShared("org.eclipse.egit.core.GitProvider")) { bottomfolder.addView("org.eclipse.egit.ui.StagingView"); bottomfolder.addPlaceholder("org.eclipse.team.ui.GenericHistoryView"); } final IFolderLayout rightFolder = layout.createFolder("right", IPageLayout.RIGHT, (float) 0.75, editorArea); //$NON-NLS-1$ rightFolder.addView(IPageLayout.ID_OUTLINE); }
Example #17
Source File: TestingPerspectiveFactory.java From tracecompass with Eclipse Public License 2.0 | 6 votes |
@Override public void createInitialLayout(IPageLayout layout) { // Editor area layout.setEditorAreaVisible(true); // Create the left folder IFolderLayout leftFolder = layout.createFolder( "leftFolder", IPageLayout.LEFT, 0.25f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ leftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER); // Create the bottom right folder IFolderLayout bottomRightFolder = layout.createFolder( "bottomRightFolder", IPageLayout.BOTTOM, 0.5f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ bottomRightFolder.addView(IPageLayout.ID_PROP_SHEET); // Populate menus, etc layout.addPerspectiveShortcut(ID); layout.addNewWizardShortcut(NewTmfProjectWizard.ID); }
Example #18
Source File: XdsPerspectiveFactory.java From xds-ide with Eclipse Public License 1.0 | 6 votes |
@Override public void createInitialLayout(IPageLayout layout) { layout.addNewWizardShortcut("com.excelsior.xds.ui.project.NewProjectFromScratchWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("com.excelsior.xds.ui.project.NewProjectFromSourcesWizard"); //$NON-NLS-1$ String editorArea = layout.getEditorArea(); layout.addView(IPageLayout.ID_PROJECT_EXPLORER, IPageLayout.LEFT, 0.20f, editorArea); // the Tasks view. IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.80f, editorArea); //$NON-NLS-1$ bottom.addView(IPageLayout.ID_PROBLEM_VIEW); bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW); IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, 0.80f, editorArea); //$NON-NLS-1$ right.addView(IPageLayout.ID_OUTLINE); layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET); layout.addActionSet("org.eclipse.debug.ui.profileActionSet"); //Bug: not included in IDebugUIConstants //$NON-NLS-1$ // Put the Outline view on the left. // layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.01f, editorArea); }
Example #19
Source File: TypeScriptPerspectiveFactory.java From typescript.java with MIT License | 6 votes |
@Override public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, (float) 0.25, editorArea); //$NON-NLS-1$ left.addView(IPageLayout.ID_PROJECT_EXPLORER); left.addPlaceholder(IPageLayout.ID_RES_NAV); IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$ bottom.addView("org.eclipse.tm.terminal.view.ui.TerminalsView"); bottom.addView(IPageLayout.ID_PROBLEM_VIEW); bottom.addPlaceholder(TemplatesView.ID); bottom.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID); bottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW); bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS); bottom.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID); bottom.addPlaceholder(IPageLayout.ID_TASK_LIST); bottom.addPlaceholder(IPageLayout.ID_PROP_SHEET); layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float) 0.75, editorArea); }
Example #20
Source File: CodeCheckerPerspectiveFactory.java From CodeCheckerEclipsePlugin with Eclipse Public License 1.0 | 6 votes |
private void defineActions(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, (float) 0.26, editorArea); left.addView(IPageLayout.ID_PROJECT_EXPLORER); IFolderLayout middleLeft = layout.createFolder("middleLeft", IPageLayout.BOTTOM, (float) 0.33, "left"); middleLeft.addView(ReportListView.ID); middleLeft.addView(ReportListViewProject.ID); IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, (float) 0.8, editorArea); right.addView(IConsoleConstants.ID_CONSOLE_VIEW); right.addView(IPageLayout.ID_OUTLINE); right.addView(IPageLayout.ID_TASK_LIST); IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.8, editorArea); bottom.addView(IPageLayout.ID_PROBLEM_VIEW); }
Example #21
Source File: MarkdownEditorPerspectiveFactory.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
@Override public void createInitialLayout(final IPageLayout layout) { final String editorArea = layout.getEditorArea(); final IFolderLayout leftView = layout.createFolder( "leftView", IPageLayout.LEFT, getExplorerViewRatio(), editorArea); leftView.addView("org.bonitasoft.studio.application.project.explorer"); final IFolderLayout bottomfolder = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, editorArea); //$NON-NLS-1$ if (RepositoryManager.getInstance().getCurrentRepository().isShared("org.eclipse.egit.core.GitProvider")) { bottomfolder.addView("org.eclipse.egit.ui.StagingView"); bottomfolder.addPlaceholder("org.eclipse.team.ui.GenericHistoryView"); } bottomfolder.addView("org.eclipse.ui.views.ProblemView"); final IFolderLayout rightFolder = layout.createFolder("right", IPageLayout.RIGHT, 0.85f, editorArea); //$NON-NLS-1$ rightFolder.addView(IPageLayout.ID_OUTLINE); IFolderLayout htmlViewFolder = layout.createFolder("right", IPageLayout.RIGHT, 0.5f, editorArea); //$NON-NLS-1$ htmlViewFolder.addView("code.satyagraha.gfm.viewer.views.GfmView"); }
Example #22
Source File: CasEditorPerspectiveFactory.java From uima-uimaj with Apache License 2.0 | 5 votes |
private void defineLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); // left views IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.19f, editorArea); left.addView("org.eclipse.ui.navigator.ProjectExplorer"); // right views IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, 0.70f, editorArea); right.addView(IPageLayout.ID_OUTLINE); right.addView(FeatureStructureBrowserView.ID); IFolderLayout rightBottomCorner = layout.createFolder("rightBottomCorner", IPageLayout.BOTTOM, 0.75f, "right"); rightBottomCorner.addView(AnnotationStyleView.ID); // bottom views IFolderLayout rightBottom = layout.createFolder("rightBottom", IPageLayout.BOTTOM, 0.75f, editorArea); rightBottom.addView(EditView.ID); IFolderLayout leftBottom = layout.createFolder("leftBottom", IPageLayout.RIGHT, 0.5f, EditView.ID); leftBottom.addView(EditView.ID_2); }
Example #23
Source File: BdmPerspectiveFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Override public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); final IFolderLayout leftFolder = layout.createFolder( "leftFolder", IPageLayout.LEFT, 0.2f, editorArea); leftFolder.addView("org.bonitasoft.studio.application.project.explorer"); if (RepositoryManager.getInstance().getCurrentRepository().isShared("org.eclipse.egit.core.GitProvider")) { leftFolder.addView("org.eclipse.egit.ui.StagingView"); leftFolder.addPlaceholder("org.eclipse.team.ui.GenericHistoryView"); } }
Example #24
Source File: ReportPerspective.java From birt with Eclipse Public License 1.0 | 5 votes |
private void addLayoutView( IFolderLayout folder, int layoutPos, String id ) { if ( extra == null || !extra.obsoleteLayoutView( layoutPos, id ) ) { folder.addView( id ); } }
Example #25
Source File: Perspective.java From ice with Eclipse Public License 1.0 | 5 votes |
@Override public void createInitialLayout(IPageLayout layout) { // Setup the perspective shortcut button in the top right corner layout.addPerspectiveShortcut(Perspective.ID); // Reserve space for the Console and Properties IFolderLayout bottomRight = layout.createFolder("bottomRight", IPageLayout.BOTTOM, 0.70f, layout.getEditorArea()); bottomRight.addView(IConsoleConstants.ID_CONSOLE_VIEW); bottomRight.addView(IPageLayout.ID_PROP_SHEET); return; }
Example #26
Source File: TextEditorPerspectiveFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Override public void createInitialLayout(final IPageLayout layout) { final String editorArea = layout.getEditorArea(); final IFolderLayout leftView = layout.createFolder( "leftView", IPageLayout.LEFT, getExplorerViewRatio(), editorArea); leftView.addView("org.bonitasoft.studio.application.project.explorer"); final IFolderLayout bottomfolder = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$ if (RepositoryManager.getInstance().getCurrentRepository().isShared("org.eclipse.egit.core.GitProvider")) { bottomfolder.addView("org.eclipse.egit.ui.StagingView"); bottomfolder.addPlaceholder("org.eclipse.team.ui.GenericHistoryView"); } bottomfolder.addView("org.eclipse.ui.views.ProblemView"); }
Example #27
Source File: WelcomePagePerspectiveFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Override public void createInitialLayout(final IPageLayout layout) { layout.setEditorAreaVisible(false); final String editorArea = layout.getEditorArea(); final IFolderLayout leftFolder = layout.createFolder("left", IPageLayout.LEFT, getExplorerViewRatio(), editorArea); //$NON-NLS-1$ leftFolder.addView(BonitaProjectExplorer.ID); final IFolderLayout rightFolder = layout.createFolder("right", IPageLayout.RIGHT, (float) 0.75, editorArea); //$NON-NLS-1$ rightFolder.addPlaceholder(IIntroConstants.INTRO_VIEW_ID); }
Example #28
Source File: ArtikelPerspektive.java From elexis-3-core with Eclipse Public License 1.0 | 5 votes |
public void createInitialLayout(IPageLayout layout){ layout.setEditorAreaVisible(false); layout.setFixed(false); IFolderLayout ifr = layout.createFolder("folder", IPageLayout.LEFT, 0.5f, IPageLayout.ID_EDITOR_AREA); ifr.addView(ArtikelView.ID); ifr.addView(KompendiumView.ID); }
Example #29
Source File: PerspectiveProcessFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Override public void createInitialLayout(final IPageLayout layout) { // Editors are placed for free. final String editorArea = layout.getEditorArea(); final IFolderLayout left = layout.createFolder( "left", IPageLayout.LEFT, getExplorerViewRatio(), editorArea); left.addView("org.bonitasoft.studio.application.project.explorer"); left.addView("org.bonitasoft.studio.views.overview.tree"); layout.createFolder("right", IPageLayout.RIGHT, 100, editorArea); // Bottom right. final IFolderLayout bottomRight = layout.createFolder("bottom", IPageLayout.BOTTOM, //$NON-NLS-1$ (float) 0.7, editorArea); bottomRight.addView("org.bonitasoft.studio.views.properties.process.general"); bottomRight.addView("org.bonitasoft.studio.views.properties.process.data"); bottomRight.addView("org.bonitasoft.studio.views.properties.process.execution"); bottomRight.addView("org.bonitasoft.studio.views.properties.process.appearance"); for (final String viewId : BonitaPerspectivesUtils.getContributedPropertiesViews(PROCESS_PERSPECTIVE_ID)) { bottomRight.addView(viewId); } bottomRight.addView("org.bonitasoft.studio.validation.view"); bottomRight.addView("org.bonitasoft.studio.views.overview"); if (RepositoryManager.getInstance().getCurrentRepository().isShared("org.eclipse.egit.core.GitProvider")) { bottomRight.addView("org.eclipse.egit.ui.StagingView"); bottomRight.addPlaceholder("org.eclipse.team.ui.GenericHistoryView"); } }
Example #30
Source File: SVNPerspective.java From APICloud-Studio with GNU General Public License v3.0 | 5 votes |
/** * Defines the initial layout for a page. */ public void defineLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout top = layout.createFolder("top", IPageLayout.LEFT, 0.40f, editorArea); //$NON-NLS-1$ top.addView(RepositoriesView.VIEW_ID); layout.addView(ISVNUIConstants.HISTORY_VIEW_ID, IPageLayout.BOTTOM, 0.70f, editorArea); layout.setEditorAreaVisible(true); }