Java Code Examples for org.eclipse.ui.IFolderLayout#addPlaceholder()
The following examples show how to use
org.eclipse.ui.IFolderLayout#addPlaceholder() .
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: 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 2
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 3
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 4
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 5
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 6
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 7
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 8
Source File: ApplicationPerspectiveFactory.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 leftFolder = layout.createFolder( "leftFolder", IPageLayout.LEFT, getExplorerViewRatio(), editorArea); leftFolder.addView(BonitaProjectExplorer.ID); leftFolder.addView(IPageLayout.ID_OUTLINE); 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 9
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 10
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 11
Source File: SimulationPerspective.java From gama with GNU General Public License v3.0 | 5 votes |
@Override public void createInitialLayout(final IPageLayout lay) { lay.setFixed(false); lay.setEditorAreaVisible(false); final String editor = lay.getEditorArea(); final IFolderLayout navigAndParam = lay.createFolder("navigAndParam", IPageLayout.LEFT, 0.3f, editor); navigAndParam.addView(IGui.PARAMETER_VIEW_ID); navigAndParam.addView(IGui.NAVIGATOR_VIEW_ID); navigAndParam.addPlaceholder(IGui.ERROR_VIEW_ID); navigAndParam.addPlaceholder(IGui.TEST_VIEW_ID); final IFolderLayout consoleFolder = lay.createFolder("consoles", IPageLayout.BOTTOM, 0.70f, "navigAndParam"); consoleFolder.addView(IGui.INTERACTIVE_CONSOLE_VIEW_ID); consoleFolder.addView(IGui.CONSOLE_VIEW_ID); final IPlaceholderFolderLayout displays = lay.createPlaceholderFolder("displays", IPageLayout.TOP, 0.7f, editor); displays.addPlaceholder(IGui.LAYER_VIEW_ID + ":*"); displays.addPlaceholder(IGui.GL_LAYER_VIEW_ID + ":*"); displays.addPlaceholder(IGui.GL_LAYER_VIEW_ID2 + ":*"); final IPlaceholderFolderLayout inspect = lay.createPlaceholderFolder("inspect", IPageLayout.RIGHT, 0.6f, "displays"); inspect.addPlaceholder(IGui.AGENT_VIEW_ID); inspect.addPlaceholder(IGui.TABLE_VIEW_ID + ":*"); final IPlaceholderFolderLayout monitor = lay.createPlaceholderFolder("monitor", IPageLayout.BOTTOM, 0.50f, "inspect"); monitor.addPlaceholder(IGui.MONITOR_VIEW_ID); }
Example 12
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 13
Source File: FindBugsPerspectiveFactory.java From spotbugs with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, (float) 0.25, editorArea); topLeft.addView(FindbugsPlugin.TREE_VIEW_ID); topLeft.addPlaceholder(JavaUI.ID_PACKAGES); // Bottom right. IFolderLayout bottomRightB = layout.createFolder("bottomRightB", IPageLayout.RIGHT, (float) 0.45, editorArea); bottomRightB.addView(FindbugsPlugin.DETAILS_VIEW_ID); }
Example 14
Source File: TexPerspectiveFactory.java From texlipse with Eclipse Public License 1.0 | 5 votes |
public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); //Navigator view left layout.addView(IPageLayout.ID_PROJECT_EXPLORER, IPageLayout.LEFT, 0.25f, editorArea); //Outline view on the left IFolderLayout left = layout.createFolder("left", IPageLayout.BOTTOM, 0.50f, IPageLayout.ID_PROJECT_EXPLORER); left.addView(IPageLayout.ID_OUTLINE); left.addView(ID_FULL_OUTLINE); IFolderLayout bottom = layout.createFolder( "bottom", IPageLayout.BOTTOM, 0.70f, editorArea); bottom.addView(IPageLayout.ID_PROBLEM_VIEW); bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW); bottom.addView(IPageLayout.ID_TASK_LIST); bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS); bottom.addView(ID_TABLE_VIEW); layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS); layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER); layout.addShowViewShortcut(IPageLayout.ID_OUTLINE); layout.addShowViewShortcut(ID_FULL_OUTLINE); layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW); layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST); layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW); layout.addShowViewShortcut(ID_TABLE_VIEW); //Add project and Latex file creation wizards to menu layout.addNewWizardShortcut(ID_PROJECT_WIZARD); layout.addNewWizardShortcut(ID_LATEX_FILE_WIZARD); }
Example 15
Source File: JavaPerspectiveFactory.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout folder= layout.createFolder("left", IPageLayout.LEFT, (float)0.25, editorArea); //$NON-NLS-1$ folder.addView(JavaUI.ID_PACKAGES); folder.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY); folder.addPlaceholder(JavaPlugin.ID_RES_NAV); folder.addPlaceholder(IPageLayout.ID_PROJECT_EXPLORER); IFolderLayout outputfolder= layout.createFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$ outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW); outputfolder.addView(JavaUI.ID_JAVADOC_VIEW); outputfolder.addView(JavaUI.ID_SOURCE_VIEW); outputfolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID); outputfolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW); outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS); outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID); IFolderLayout outlineFolder = layout.createFolder("right", IPageLayout.RIGHT, (float)0.75, editorArea); //$NON-NLS-1$ outlineFolder.addView(IPageLayout.ID_OUTLINE); outlineFolder.addPlaceholder(TemplatesView.ID); layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET); layout.addActionSet(JavaUI.ID_ACTION_SET); layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET); layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET); // views - java layout.addShowViewShortcut(JavaUI.ID_PACKAGES); layout.addShowViewShortcut(JavaUI.ID_TYPE_HIERARCHY); layout.addShowViewShortcut(JavaUI.ID_SOURCE_VIEW); layout.addShowViewShortcut(JavaUI.ID_JAVADOC_VIEW); // views - search layout.addShowViewShortcut(NewSearchUI.SEARCH_VIEW_ID); // views - debugging layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW); // views - standard workbench layout.addShowViewShortcut(IPageLayout.ID_OUTLINE); layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW); layout.addShowViewShortcut(JavaPlugin.ID_RES_NAV); layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST); layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID); layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER); layout.addShowViewShortcut(TemplatesView.ID); layout.addShowViewShortcut("org.eclipse.pde.runtime.LogView"); //$NON-NLS-1$ // new actions - Java project creation wizard layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.JavaProjectWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewPackageCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewClassCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewEnumCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewAnnotationCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSnippetFileCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewJavaWorkingSetWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");//$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");//$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.editors.wizards.UntitledTextFileWizard");//$NON-NLS-1$ // 'Window' > 'Open Perspective' contributions layout.addPerspectiveShortcut(JavaUI.ID_BROWSING_PERSPECTIVE); layout.addPerspectiveShortcut(IDebugUIConstants.ID_DEBUG_PERSPECTIVE); }
Example 16
Source File: JavaHierarchyPerspectiveFactory.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout folder= layout.createFolder("left", IPageLayout.LEFT, (float)0.25, editorArea); //$NON-NLS-1$ folder.addView(JavaUI.ID_TYPE_HIERARCHY); folder.addPlaceholder(IPageLayout.ID_OUTLINE); folder.addPlaceholder(JavaUI.ID_PACKAGES); folder.addPlaceholder(JavaPlugin.ID_RES_NAV); folder.addPlaceholder(IPageLayout.ID_PROJECT_EXPLORER); IPlaceholderFolderLayout outputfolder= layout.createPlaceholderFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$ outputfolder.addPlaceholder(IPageLayout.ID_PROBLEM_VIEW); outputfolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID); outputfolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW); outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS); outputfolder.addPlaceholder(JavaUI.ID_SOURCE_VIEW); outputfolder.addPlaceholder(JavaUI.ID_JAVADOC_VIEW); outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID); layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET); layout.addActionSet(JavaUI.ID_ACTION_SET); layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET); // views - java layout.addShowViewShortcut(JavaUI.ID_PACKAGES); layout.addShowViewShortcut(JavaUI.ID_TYPE_HIERARCHY); layout.addShowViewShortcut(NewSearchUI.SEARCH_VIEW_ID); // views - debugging layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW); // views - standard workbench layout.addShowViewShortcut(IPageLayout.ID_OUTLINE); layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW); layout.addShowViewShortcut(JavaPlugin.ID_RES_NAV); layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST); layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID); layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER); layout.addShowViewShortcut(TemplatesView.ID); layout.addShowViewShortcut("org.eclipse.pde.runtime.LogView"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.JavaProjectWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewPackageCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewClassCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewEnumCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewAnnotationCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSnippetFileCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewJavaWorkingSetWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");//$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");//$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.editors.wizards.UntitledTextFileWizard");//$NON-NLS-1$ // 'Window' > 'Open Perspective' contributions layout.addPerspectiveShortcut(JavaUI.ID_PERSPECTIVE); layout.addPerspectiveShortcut(JavaUI.ID_BROWSING_PERSPECTIVE); layout.addPerspectiveShortcut(IDebugUIConstants.ID_DEBUG_PERSPECTIVE); }
Example 17
Source File: SARLDebugPerspectiveFactory.java From sarl with Apache License 2.0 | 4 votes |
@Override public void createInitialLayout(IPageLayout layout) { final IFolderLayout consoleFolder = layout.createFolder(IInternalDebugUIConstants.ID_CONSOLE_FOLDER_VIEW, IPageLayout.BOTTOM, BOTTOM_PANEL_RATIO, layout.getEditorArea()); consoleFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW); consoleFolder.addView(IPageLayout.ID_TASK_LIST); consoleFolder.addPlaceholder(IPageLayout.ID_BOOKMARKS); consoleFolder.addPlaceholder(IPageLayout.ID_PROP_SHEET); final IFolderLayout navFolder = layout.createFolder(IInternalDebugUIConstants.ID_NAVIGATOR_FOLDER_VIEW, IPageLayout.TOP, NAVIGATION_PANEL_RATIO, layout.getEditorArea()); navFolder.addView(IDebugUIConstants.ID_DEBUG_VIEW); navFolder.addPlaceholder(IPageLayout.ID_PROJECT_EXPLORER); final IFolderLayout toolsFolder = layout.createFolder(IInternalDebugUIConstants.ID_TOOLS_FOLDER_VIEW, IPageLayout.RIGHT, TOOL_PANEL_RATIO, IInternalDebugUIConstants.ID_NAVIGATOR_FOLDER_VIEW); toolsFolder.addView(IDebugUIConstants.ID_VARIABLE_VIEW); toolsFolder.addView(IDebugUIConstants.ID_BREAKPOINT_VIEW); toolsFolder.addPlaceholder(IDebugUIConstants.ID_EXPRESSION_VIEW); toolsFolder.addPlaceholder(IDebugUIConstants.ID_REGISTER_VIEW); final IFolderLayout outlineFolder = layout.createFolder(IInternalDebugUIConstants.ID_OUTLINE_FOLDER_VIEW, IPageLayout.RIGHT, OUTLINE_PANEL_RATIO, layout.getEditorArea()); outlineFolder.addView(IPageLayout.ID_OUTLINE); layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET); layout.addActionSet(IDebugUIConstants.DEBUG_ACTION_SET); // Set the view shortcuts layout.addShowViewShortcut(IDebugUIConstants.ID_DEBUG_VIEW); layout.addShowViewShortcut(IDebugUIConstants.ID_VARIABLE_VIEW); layout.addShowViewShortcut(IDebugUIConstants.ID_BREAKPOINT_VIEW); layout.addShowViewShortcut(IDebugUIConstants.ID_EXPRESSION_VIEW); layout.addShowViewShortcut(IPageLayout.ID_OUTLINE); layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW); layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST); // 'Window' > 'Open Perspective' contributions //--- Add the SARL debug perspective layout.addPerspectiveShortcut(SARLEclipseConfig.ID_SARL_PERSPECTIVE); }
Example 18
Source File: SARLPerspectiveFactory.java From sarl with Apache License 2.0 | 4 votes |
@Override public void createInitialLayout(IPageLayout layout) { final String editorArea = layout.getEditorArea(); final IFolderLayout folder = layout.createFolder("left", IPageLayout.LEFT, //$NON-NLS-1$ LEFT_PANEL_RATIO, editorArea); //folder.addView(JavaUI.ID_PACKAGES); folder.addView(SARLPackageExplorerPart.ID_PACKAGES); folder.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY); folder.addPlaceholder(IPageLayout.ID_PROJECT_EXPLORER); final IFolderLayout outputfolder = layout.createFolder("bottom", IPageLayout.BOTTOM, //$NON-NLS-1$ BOTTOM_PANEL_RATIO, editorArea); outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW); outputfolder.addView(IConsoleConstants.ID_CONSOLE_VIEW); outputfolder.addView(IPageLayout.ID_TASK_LIST); outputfolder.addPlaceholder(JavaUI.ID_JAVADOC_VIEW); outputfolder.addPlaceholder(JavaUI.ID_SOURCE_VIEW); outputfolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID); outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS); outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID); final IFolderLayout outlineFolder = layout.createFolder("right", IPageLayout.RIGHT, //$NON-NLS-1$ RIGHT_PANEL_RATIO, editorArea); outlineFolder.addView(IPageLayout.ID_OUTLINE); layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET); layout.addActionSet(JavaUI.ID_ACTION_SET); layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET); layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET); // views - java layout.addShowViewShortcut(JavaUI.ID_PACKAGES); layout.addShowViewShortcut(JavaUI.ID_TYPE_HIERARCHY); layout.addShowViewShortcut(JavaUI.ID_SOURCE_VIEW); // views - search layout.addShowViewShortcut(NewSearchUI.SEARCH_VIEW_ID); // views - debugging layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW); // views - standard workbench layout.addShowViewShortcut(IPageLayout.ID_OUTLINE); layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW); layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST); layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID); layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER); layout.addShowViewShortcut("org.eclipse.pde.runtime.LogView"); //$NON-NLS-1$ // new actions - Java project creation wizard layout.addNewWizardShortcut("io.sarl.eclipse.wizard.newSarlProject"); //$NON-NLS-1$ layout.addNewWizardShortcut("io.sarl.eclipse.wizard.newSarlScript"); //$NON-NLS-1$ layout.addNewWizardShortcut("io.sarl.eclipse.wizard.newSarlAgent"); //$NON-NLS-1$ layout.addNewWizardShortcut("io.sarl.eclipse.wizard.newSarlBehavior"); //$NON-NLS-1$ layout.addNewWizardShortcut("io.sarl.eclipse.wizard.newSarlCapacity"); //$NON-NLS-1$ layout.addNewWizardShortcut("io.sarl.eclipse.wizard.newSarlEvent"); //$NON-NLS-1$ layout.addNewWizardShortcut("io.sarl.eclipse.wizard.newSarlSkill"); //$NON-NLS-1$ layout.addNewWizardShortcut("io.sarl.eclipse.wizard.newSarlClass"); //$NON-NLS-1$ layout.addNewWizardShortcut("io.sarl.eclipse.wizard.newSarlInterface"); //$NON-NLS-1$ layout.addNewWizardShortcut("io.sarl.eclipse.wizard.newSarlEnumeration"); //$NON-NLS-1$ layout.addNewWizardShortcut("io.sarl.eclipse.wizard.newSarlAnnotation"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewEnumCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewPackageCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file"); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.editors.wizards.UntitledTextFileWizard"); //$NON-NLS-1$ // 'Window' > 'Open Perspective' contributions //--- Add the SARL debug perspective layout.addPerspectiveShortcut(SARLEclipseConfig.ID_SARL_DEBUG_PERSPECTIVE); //--- Add the Java perspectives layout.addPerspectiveShortcut(JavaUI.ID_PERSPECTIVE); layout.addPerspectiveShortcut(JavaUI.ID_BROWSING_PERSPECTIVE); //--- Add the Debug perspectives layout.addPerspectiveShortcut(IDebugUIConstants.ID_DEBUG_PERSPECTIVE); }
Example 19
Source File: HadoopPerspectiveFactory.java From RDFS with Apache License 2.0 | 4 votes |
public void createInitialLayout(IPageLayout layout) { layout.addNewWizardShortcut("org.apache.hadoop.eclipse.NewDriverWizard"); layout.addNewWizardShortcut("org.apache.hadoop.eclipse.NewMapperWizard"); layout .addNewWizardShortcut("org.apache.hadoop.eclipse.NewReducerWizard"); IFolderLayout left = layout.createFolder("org.apache.hadoop.eclipse.perspective.left", IPageLayout.LEFT, 0.2f, layout.getEditorArea()); left.addView("org.eclipse.ui.navigator.ProjectExplorer"); IFolderLayout bottom = layout.createFolder("org.apache.hadoop.eclipse.perspective.bottom", IPageLayout.BOTTOM, 0.7f, layout.getEditorArea()); bottom.addView(IPageLayout.ID_PROBLEM_VIEW); bottom.addView(IPageLayout.ID_TASK_LIST); bottom.addView(JavaUI.ID_JAVADOC_VIEW); bottom.addView("org.apache.hadoop.eclipse.view.servers"); bottom.addPlaceholder(JavaUI.ID_SOURCE_VIEW); bottom.addPlaceholder(IPageLayout.ID_PROGRESS_VIEW); bottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW); bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS); IFolderLayout right = layout.createFolder("org.apache.hadoop.eclipse.perspective.right", IPageLayout.RIGHT, 0.8f, layout.getEditorArea()); right.addView(IPageLayout.ID_OUTLINE); right.addView("org.eclipse.ui.cheatsheets.views.CheatSheetView"); // right.addView(layout.ID); .. cheat sheet here layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET); layout.addActionSet(JavaUI.ID_ACTION_SET); layout.addActionSet(JavaUI.ID_CODING_ACTION_SET); layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET); layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET); layout.addActionSet(JavaUI.ID_SEARCH_ACTION_SET); layout .addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewPackageCreationWizard"); layout .addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewClassCreationWizard"); layout .addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard"); layout .addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewEnumCreationWizard"); layout .addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewAnnotationCreationWizard"); layout .addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard"); layout .addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSnippetFileCreationWizard"); layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder"); layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file"); layout .addNewWizardShortcut("org.eclipse.ui.editors.wizards.UntitledTextFileWizard"); // CheatSheetViewerFactory.createCheatSheetView().setInput("org.apache.hadoop.eclipse.cheatsheet"); }
Example 20
Source File: PatientPerspektive.java From elexis-3-core with Eclipse Public License 1.0 | 4 votes |
public void createInitialLayout(final IPageLayout layout){ layout.setEditorAreaVisible(false); layout.setFixed(false); IFolderLayout left = layout.createFolder("Links.folder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA); IFolderLayout main = layout.createFolder("Haupt.Folder", IPageLayout.RIGHT, 0.3f, "Links.folder"); //$NON-NLS-1$ IFolderLayout leftbottom = layout.createFolder("links.unten", IPageLayout.BOTTOM, 0.7f, "Links.folder"); IFolderLayout right = layout.createFolder("Rechts.folder", IPageLayout.RIGHT, 0.7f, "Haupt.Folder"); main.addView(UiResourceConstants.PatientDetailView2_ID); left.addView(UiResourceConstants.PatientenListeView_ID); leftbottom.addView(FaelleView.ID); left.addView(PatHeuteView.ID); main.addView(KonsDetailView.ID); main.addView(UiResourceConstants.LaborView_ID); main.addView(RezepteView.ID); main.addView(AUF2.ID); right.addView(KonsListe.ID); main.addPlaceholder(FallDetailView.ID); main.addPlaceholder(TextView.ID); main.addPlaceholder(KompendiumView.ID); layout.addPerspectiveShortcut(UiResourceConstants.PatientPerspektive_ID); layout.addShowViewShortcut(UiResourceConstants.PatientDetailView2_ID); layout.addShowViewShortcut(UiResourceConstants.PatientenListeView_ID); // layout.addShowViewShortcut(FallListeView.ID); layout.addPerspectiveShortcut(FaelleView.ID); layout.addShowViewShortcut(KonsListe.ID); layout.addShowViewShortcut(PatHeuteView.ID); layout.addShowViewShortcut(KonsDetailView.ID); layout.addShowViewShortcut(RezepteView.ID); layout.addShowViewShortcut(FallDetailView.ID); UiDesk.asyncExec(new Runnable() { public void run(){ ElexisFastViewUtil.addToFastView(UiResourceConstants.PatientPerspektive_ID, LeistungenView.ID); ElexisFastViewUtil.addToFastView(UiResourceConstants.PatientPerspektive_ID, DiagnosenView.ID); } }); }