Java Code Examples for org.eclipse.ui.IPageLayout#setEditorAreaVisible()
The following examples show how to use
org.eclipse.ui.IPageLayout#setEditorAreaVisible() .
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: 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 2
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 3
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 4
Source File: TmfAlignTimeAxisTest.java From tracecompass with Eclipse Public License 2.0 | 5 votes |
@Override public void createInitialLayout(IPageLayout layout) { if (layout == null) { return; } // Editor area layout.setEditorAreaVisible(true); // Editor area layout.setEditorAreaVisible(true); // Create the top left folder IFolderLayout topLeftFolder = layout.createFolder("topLeftFolder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ topLeftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER); // Create the top right folder IFolderLayout topRightFolder = layout.createFolder("topRightFolder", IPageLayout.BOTTOM, EDITOR_AREA_RATIO, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ topRightFolder.addView(HistogramView.ID); // Create the middle right folder IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, 0.50f, "topRightFolder"); //$NON-NLS-1$ middleRightFolder.addView(TimeGraphViewStub.ID); // Create the bottom right folder IFolderLayout bottomRightFolder = layout.createFolder("bottomRightFolder", IPageLayout.BOTTOM, 0.65f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$ bottomRightFolder.addView(TimeChartView.ID); // Populate menus, etc layout.addPerspectiveShortcut(ID); layout.addNewWizardShortcut(NewTmfProjectWizard.ID); }
Example 5
Source File: BBSPerspective.java From elexis-3-core with Eclipse Public License 1.0 | 5 votes |
public void createInitialLayout(IPageLayout layout){ String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.setFixed(true); layout.addView(BBSView.ID, IPageLayout.RIGHT, 0.9f, editorArea); }
Example 6
Source File: Perspective.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
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); }
Example 7
Source File: PerspectiveFactory.java From tracecompass with Eclipse Public License 2.0 | 5 votes |
@Override public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(true); addFastViews(layout); addViewShortcuts(layout); addPerspectiveShortcuts(layout); // 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 top right folder IFolderLayout topRightFolder = layout.createFolder( "topRightFolder", IPageLayout.TOP, 0.40f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ topRightFolder.addView(RESOURCES_VIEW_ID); topRightFolder.addView(CONTROLFLOW_VIEW_ID); topRightFolder.addView(STATISTICS_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(HISTOGRAM_VIEW_ID); bottomRightFolder.addView(PROPERTIES_VIEW_ID); bottomRightFolder.addView(BOOKMARKS_VIEW_ID); layout.addNewWizardShortcut(NewTmfProjectWizard.ID); }
Example 8
Source File: KernelOverviewPerspectiveFactory.java From tracecompass with Eclipse Public License 2.0 | 5 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 top right folder IFolderLayout topFolders[] = new IFolderLayout[3]; topFolders[0] = layout.createFolder( "topFolder1", IPageLayout.TOP, 1.0f/5.0f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ topFolders[0].addView(CPU_VIEW_ID); // Create the top right folder topFolders[1] = layout.createFolder( "topFolder2", IPageLayout.TOP, 1.0f/4.0f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ topFolders[1].addView(DISK_VIEW_ID); // Create the top right folder topFolders[2] = layout.createFolder( "topFolders3", IPageLayout.TOP, 1.0f/3.0f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ topFolders[2].addView(MEMORY_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(HISTOGRAM_VIEW_ID); bottomRightFolder.addView(BOOKMARKS_VIEW_ID); layout.addNewWizardShortcut(NewTmfProjectWizard.ID); }
Example 9
Source File: TracingPerspectiveFactory.java From tracecompass with Eclipse Public License 2.0 | 5 votes |
@Override public void createInitialLayout(IPageLayout layout) { // Editor area 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 middle right folder IFolderLayout middleRightFolder = layout.createFolder( "middleRightFolder", IPageLayout.BOTTOM, 0.50f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ middleRightFolder.addView(STATISTICS_VIEW_ID); // Create the bottom right folder IFolderLayout bottomRightFolder = layout.createFolder( "bottomRightFolder", IPageLayout.BOTTOM, 0.55f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$ bottomRightFolder.addView(HISTOGRAM_VIEW_ID); bottomRightFolder.addView(PROPERTIES_VIEW_ID); bottomRightFolder.addView(BOOKMARKS_VIEW_ID); // Populate menus, etc layout.addPerspectiveShortcut(ID); layout.addNewWizardShortcut(NewTmfProjectWizard.ID); }
Example 10
Source File: TmfAlignTimeAxisTest.java From tracecompass with Eclipse Public License 2.0 | 5 votes |
@Override public void createInitialLayout(IPageLayout layout) { if (layout == null) { return; } // Editor area layout.setEditorAreaVisible(true); // Editor area layout.setEditorAreaVisible(true); // Create the top left folder IFolderLayout topLeftFolder = layout.createFolder("topLeftFolder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ topLeftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER); IFolderLayout bottomLeftFolder = layout.createFolder("bottomLeftFolder", IPageLayout.BOTTOM, 0.5f, "topLeftFolder"); //$NON-NLS-1$ bottomLeftFolder.addView(TimeGraphViewStub.ID); // Create the middle right folder IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, EDITOR_AREA_RATIO, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ middleRightFolder.addView(HistogramView.ID); // Create the bottom right folder IFolderLayout bottomRightFolder = layout.createFolder("bottomRightFolder", IPageLayout.BOTTOM, 0.65f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$ bottomRightFolder.addView(TimeChartView.ID); // Populate menus, etc layout.addPerspectiveShortcut(ID); layout.addNewWizardShortcut(NewTmfProjectWizard.ID); }
Example 11
Source File: TmfAlignTimeAxisTest.java From tracecompass with Eclipse Public License 2.0 | 5 votes |
@Override public void createInitialLayout(IPageLayout layout) { if (layout == null) { return; } // Editor area layout.setEditorAreaVisible(true); // Editor area layout.setEditorAreaVisible(true); // Create the top left folder IFolderLayout topLeftFolder = layout.createFolder("topLeftFolder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ topLeftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER); // Create the middle right folder IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, EDITOR_AREA_RATIO, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ middleRightFolder.addView(HistogramView.ID); middleRightFolder.addView(TimeChartView.ID); // Create the bottom right folder IFolderLayout bottomRightFolder = layout.createFolder("bottomRightFolder", IPageLayout.BOTTOM, 0.65f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$ bottomRightFolder.addView(TimeGraphViewStub.ID); // Populate menus, etc layout.addPerspectiveShortcut(ID); layout.addNewWizardShortcut(NewTmfProjectWizard.ID); }
Example 12
Source File: LeistungPerspektive.java From elexis-3-core with Eclipse Public License 1.0 | 5 votes |
public void createInitialLayout(IPageLayout layout){ layout.setEditorAreaVisible(false); layout.setFixed(false); layout.addPlaceholder(LeistungenView.ID, IPageLayout.LEFT, 0.3f, IPageLayout.ID_EDITOR_AREA); layout.addView(CodeDetailView.ID, IPageLayout.LEFT, 0.8f, IPageLayout.ID_EDITOR_AREA); layout.addShowViewShortcut(CodeDetailView.ID); }
Example 13
Source File: NetworkingPerspectiveFactory.java From tracecompass with Eclipse Public License 2.0 | 5 votes |
@Override public void createInitialLayout(@Nullable IPageLayout layout) { if (layout == null) { return; } // Editor area 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 middle right folder IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, 0.40f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ middleRightFolder.addView(PROPERTIES_VIEW_ID); middleRightFolder.addView(HISTOGRAM_VIEW_ID); middleRightFolder.addView(STATISTICS_VIEW_ID); middleRightFolder.addView(COLOR_VIEW_ID); // Create the bottom right folder IFolderLayout bottomRightFolder = layout.createFolder("bottomRightFolder", IPageLayout.BOTTOM, 0.65f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$ bottomRightFolder.addView(FILTER_VIEW_ID); bottomRightFolder.addView(BOOKMARKS_VIEW_ID); bottomRightFolder.addView(STREAM_LIST_VIEW_ID); // Populate menus, etc layout.addPerspectiveShortcut(ID); layout.addNewWizardShortcut(NewTmfProjectWizard.ID); }
Example 14
Source File: StockManagementPerspective.java From elexis-3-core with Eclipse Public License 1.0 | 5 votes |
/** * Creates the initial layout for a page. */ public void createInitialLayout(IPageLayout layout){ layout.setEditorAreaVisible(false); addFastViews(layout); addViewShortcuts(layout); addPerspectiveShortcuts(layout); layout.addView(BestellView.ID, IPageLayout.RIGHT, 0.5f, IPageLayout.ID_EDITOR_AREA); layout.addView(ArtikelSelektor.ID, IPageLayout.TOP, 0.5f, IPageLayout.ID_EDITOR_AREA); layout.addView(StockView.ID, IPageLayout.BOTTOM, 0.5f, IPageLayout.ID_EDITOR_AREA); }
Example 15
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); }
Example 16
Source File: AdressPerspektive.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 oben = layout.createFolder("oben", IPageLayout.TOP, 0.5f, IPageLayout.ID_EDITOR_AREA); IFolderLayout details = layout.createFolder("details", IPageLayout.TOP, 1.0f, IPageLayout.ID_EDITOR_AREA); oben.addView(KontakteView.ID); details.addView(KontaktDetailView.ID); }
Example 17
Source File: Perspective.java From neoscada with Eclipse Public License 1.0 | 5 votes |
@Override public void createInitialLayout ( final IPageLayout layout ) { layout.setEditorAreaVisible ( false ); layout.addView ( "org.eclipse.scada.core.ui.connection.ConnectionView", IPageLayout.LEFT, 0.25f, IPageLayout.ID_EDITOR_AREA ); final IFolderLayout folder = layout.createFolder ( "org.eclipse.scada.hmi.app.adminclient", IPageLayout.RIGHT, 0.4f, IPageLayout.ID_EDITOR_AREA ); //$NON-NLS-1$ folder.addPlaceholder ( "*" ); }
Example 18
Source File: Perspective.java From neoscada with Eclipse Public License 1.0 | 4 votes |
@Override public void createInitialLayout ( final IPageLayout layout ) { layout.setEditorAreaVisible ( false ); }
Example 19
Source File: ExamplesPerspective.java From nebula with Eclipse Public License 2.0 | 4 votes |
@Override public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(false); layout.addStandaloneView("org.eclipse.nebula.examples.view", false, IPageLayout.LEFT, 1, layout.getEditorArea()); }
Example 20
Source File: Perspective.java From jbt with Apache License 2.0 | 3 votes |
public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(true); layout.addView(NodesNavigator.ID, IPageLayout.LEFT, 0.3f, layout.getEditorArea()); IFolderLayout rightFolderLayout = layout.createFolder(RIGHT_FOLDER_ID, IPageLayout.RIGHT, 0.6f, layout.getEditorArea()); IFolderLayout bottomRightFolderLayout=layout.createFolder(BOTTOM_RIGHT_FOLDER_ID, IPageLayout.BOTTOM, 0.5f, RIGHT_FOLDER_ID); rightFolderLayout.addView(NodeInfo.ID); bottomRightFolderLayout.addView(NodesSearcher.ID); }