org.eclipse.ui.IPageLayout Java Examples
The following examples show how to use
org.eclipse.ui.IPageLayout.
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: 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 #2
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 #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: ERDiagramMultiPageEditor.java From ermasterr with Apache License 2.0 | 6 votes |
/** * {@inheritDoc} */ @Override protected Composite createPageContainer(final Composite parent) { try { final IWorkbenchPage page = getSite().getWorkbenchWindow().getActivePage(); if (page != null) { page.showView(IPageLayout.ID_OUTLINE); } } catch (final PartInitException e) { ERDiagramActivator.showExceptionDialog(e); } return super.createPageContainer(parent); }
Example #5
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 #6
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 #7
Source File: KernelPerspectiveChecker.java From tracecompass with Eclipse Public License 2.0 | 6 votes |
/** * Set up arrays for test */ @Before public void init() { fPerspectiveId = PerspectiveFactory.ID; fViewIds = new ArrayList<>(); fViewIds.addAll(Arrays.asList(new String[] { // LTTng views HistogramView.ID, ControlView.ID, ControlFlowView.ID, ResourcesView.ID, TmfStatisticsView.ID, // Standard Eclipse views IPageLayout.ID_PROJECT_EXPLORER, IPageLayout.ID_PROP_SHEET, IPageLayout.ID_BOOKMARKS })); }
Example #8
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 #9
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 #10
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 #11
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 #12
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 #13
Source File: ERDiagramMultiPageEditor.java From ermaster-b with Apache License 2.0 | 6 votes |
/** * {@inheritDoc} */ @Override protected Composite createPageContainer(Composite parent) { try { IWorkbenchPage page = this.getSite().getWorkbenchWindow() .getActivePage(); if (page != null) { page.showView(IPageLayout.ID_OUTLINE); } } catch (PartInitException e) { Activator.showExceptionDialog(e); } return super.createPageContainer(parent); }
Example #14
Source File: SWTBotUtils.java From tracecompass with Eclipse Public License 2.0 | 6 votes |
/** * Opens a trace in an editor and get the TmfEventsEditor * * @param bot * the workbench bot * @param projectName * the name of the project that contains the trace * @param elementPath * the trace element path (relative to Traces folder) * @return TmfEventsEditor the opened editor */ public static TmfEventsEditor openEditor(SWTWorkbenchBot bot, String projectName, IPath elementPath) { final SWTBotView projectExplorerView = bot.viewById(IPageLayout.ID_PROJECT_EXPLORER); projectExplorerView.setFocus(); SWTBot projectExplorerBot = projectExplorerView.bot(); final SWTBotTree tree = projectExplorerBot.tree(); projectExplorerBot.waitUntil(ConditionHelpers.isTreeNodeAvailable(projectName, tree)); final SWTBotTreeItem treeItem = tree.getTreeItem(projectName); treeItem.expand(); SWTBotTreeItem tracesNode = getTraceProjectItem(projectExplorerBot, treeItem, "Traces"); tracesNode.expand(); SWTBotTreeItem currentItem = tracesNode; for (String segment : elementPath.segments()) { currentItem = getTraceProjectItem(projectExplorerBot, currentItem, segment); currentItem.doubleClick(); } SWTBotEditor editor = bot.editorByTitle(elementPath.toString()); IEditorPart editorPart = editor.getReference().getEditor(false); assertTrue(editorPart instanceof TmfEventsEditor); return (TmfEventsEditor) editorPart; }
Example #15
Source File: ReflectivityPerspective.java From ice with Eclipse Public License 1.0 | 5 votes |
/** * Adds the shortcut for this perspective to the list in the upper right of * the workbench. * * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui. * IPageLayout) */ @Override public void createInitialLayout(IPageLayout layout) { // Add the perspective to top right corner. layout.addPerspectiveShortcut(ReflectivityPerspective.ID); return; }
Example #16
Source File: UIUtils.java From APICloud-Studio with GNU General Public License v3.0 | 5 votes |
public static IProject getSelectedProjectInExplorer() { IProject selectedProject = getSelectedProject(WebPerspectiveFactory.APP_EXPLORER_ID); if (selectedProject == null) { selectedProject = getSelectedProject(IPageLayout.ID_PROJECT_EXPLORER); } return selectedProject; }
Example #17
Source File: CasEditorPerspectiveFactory.java From uima-uimaj with Apache License 2.0 | 5 votes |
private void defineActions(IPageLayout layout) { // add "show views" layout.addShowViewShortcut("org.eclipse.ui.navigator.ProjectExplorer"); layout.addShowViewShortcut(IPageLayout.ID_OUTLINE); layout.addShowViewShortcut(AnnotationStyleView.ID); // add "open perspective" layout.addPerspectiveShortcut(CasEditorPerspectiveFactory.ID); }
Example #18
Source File: JavaBrowsingPerspectiveFactory.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private void createVerticalLayout(IPageLayout layout) { String relativePartId= IPageLayout.ID_EDITOR_AREA; int relativePos= IPageLayout.LEFT; IPlaceholderFolderLayout placeHolderLeft= layout.createPlaceholderFolder("left", IPageLayout.LEFT, (float)0.25, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ placeHolderLeft.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY); placeHolderLeft.addPlaceholder(IPageLayout.ID_OUTLINE); placeHolderLeft.addPlaceholder(JavaUI.ID_PACKAGES); placeHolderLeft.addPlaceholder(JavaPlugin.ID_RES_NAV); placeHolderLeft.addPlaceholder(IPageLayout.ID_PROJECT_EXPLORER); if (shouldShowProjectsView()) { layout.addView(JavaUI.ID_PROJECTS_VIEW, IPageLayout.LEFT, (float)0.25, IPageLayout.ID_EDITOR_AREA); relativePartId= JavaUI.ID_PROJECTS_VIEW; relativePos= IPageLayout.BOTTOM; } if (shouldShowPackagesView()) { layout.addView(JavaUI.ID_PACKAGES_VIEW, relativePos, (float)0.25, relativePartId); relativePartId= JavaUI.ID_PACKAGES_VIEW; relativePos= IPageLayout.BOTTOM; } layout.addView(JavaUI.ID_TYPES_VIEW, relativePos, (float)0.33, relativePartId); layout.addView(JavaUI.ID_MEMBERS_VIEW, IPageLayout.BOTTOM, (float)0.50, JavaUI.ID_TYPES_VIEW); IPlaceholderFolderLayout placeHolderBottom= layout.createPlaceholderFolder("bottom", IPageLayout.BOTTOM, (float)0.75, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$ placeHolderBottom.addPlaceholder(IPageLayout.ID_PROBLEM_VIEW); placeHolderBottom.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID); placeHolderBottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW); placeHolderBottom.addPlaceholder(IPageLayout.ID_BOOKMARKS); placeHolderBottom.addPlaceholder(JavaUI.ID_SOURCE_VIEW); placeHolderBottom.addPlaceholder(JavaUI.ID_JAVADOC_VIEW); placeHolderBottom.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID); }
Example #19
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 #20
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 #21
Source File: TSPerspective.java From translationstudio8 with GNU General Public License v2.0 | 5 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 right = "RIGHT"; // 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 rightFolder = layout.createFolder(right, IPageLayout.RIGHT, 0.70F, 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"); // 导航视图 rightFolder.addView("net.heartsome.cat.ts.ui.translation.view.matchview"); // 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 #22
Source File: RcpPerspective.java From olca-app with Mozilla Public License 2.0 | 5 votes |
@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); }
Example #23
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 #24
Source File: Perspective.java From translationstudio8 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 #25
Source File: LangPerspective.java From goclipse with Eclipse Public License 1.0 | 5 votes |
protected void addNewWizardShortcuts(IPageLayout layout) { // Lang layout.addNewWizardShortcut(LangNewProjectWizard.WIZARD_ID); // General layout.addNewWizardShortcut(BasicNewFolderResourceWizard.WIZARD_ID); layout.addNewWizardShortcut(BasicNewFileResourceWizard.WIZARD_ID); }
Example #26
Source File: MaterialsPerspective.java From ice with Eclipse Public License 1.0 | 5 votes |
@Override public void createInitialLayout(IPageLayout layout) { // Add the perspective to the layout layout.addPerspectiveShortcut(MaterialsPerspective.ID); return; }
Example #27
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 #28
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 #29
Source File: ProjectExplorerTracesFolderTest.java From tracecompass with Eclipse Public License 2.0 | 5 votes |
private static String getTraceProperty(SWTBotTreeItem traceItem, String property) { SWTBotUtils.openView(IPageLayout.ID_PROP_SHEET); SWTBotView view = fBot.viewById(IPageLayout.ID_PROP_SHEET); view.show(); traceItem.select(); SWTBot viewBot = view.bot(); SWTBotUtils.waitUntil(bot -> bot.tree().cell(0, 0).equals(RESOURCE_PROPERTIES), viewBot, "Resource properties did not appear"); SWTBotTreeItem traceTypeItem = SWTBotUtils.getTreeItem(viewBot, viewBot.tree(), RESOURCE_PROPERTIES, property); return traceTypeItem.cell(1); }
Example #30
Source File: GranitePerspective.java From aem-eclipse-developer-tools with Apache License 2.0 | 5 votes |
private void addViewShortcuts() { factory.addShowViewShortcut("org.eclipse.ant.ui.views.AntView"); //NON-NLS-1 factory.addShowViewShortcut("org.eclipse.team.ccvs.ui.AnnotateView"); //NON-NLS-1 factory.addShowViewShortcut("org.eclipse.pde.ui.DependenciesView"); //NON-NLS-1 factory.addShowViewShortcut("org.eclipse.jdt.junit.ResultView"); //NON-NLS-1 factory.addShowViewShortcut("org.eclipse.team.ui.GenericHistoryView"); //NON-NLS-1 factory.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW); factory.addShowViewShortcut(JavaUI.ID_PACKAGES); factory.addShowViewShortcut(IPageLayout.ID_RES_NAV); factory.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW); factory.addShowViewShortcut(IPageLayout.ID_OUTLINE); }