类org.eclipse.ui.IPageLayout源码实例Demo

下面列出了怎么用org.eclipse.ui.IPageLayout的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: lapse-plus   文件: PerspectiveFactory.java
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);
}
 
源代码2 项目: ermaster-b   文件: ERDiagramMultiPageEditor.java
/**
 * {@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);
}
 
源代码3 项目: elexis-3-core   文件: AbrechnungsPerspektive.java
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);
}
 
源代码4 项目: neoscada   文件: ScadaPerspectiveFactory.java
@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$
}
 
@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);
    }
}
 
源代码6 项目: xds-ide   文件: XdsPerspectiveFactory.java
@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);
    }
 
源代码7 项目: ermasterr   文件: ERDiagramMultiPageEditor.java
/**
 * {@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);
}
 
源代码8 项目: tmxeditor8   文件: TSPerspective.java
/**
	 * 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");
	
	}
 
源代码9 项目: goclipse   文件: LangPerspective.java
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);
}
 
源代码10 项目: tracecompass   文件: SWTBotUtils.java
/**
 * 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;
}
 
源代码11 项目: tracecompass   文件: KernelPerspectiveChecker.java
/**
 * 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
    }));
}
 
源代码12 项目: bonita-studio   文件: PerspectiveJavaFactory.java
@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);
}
 
源代码13 项目: tracecompass   文件: ControlPerspectiveFactory.java
@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);
}
 
源代码14 项目: APICloud-Studio   文件: WebPerspectiveFactory.java
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);
}
 
源代码15 项目: neoscada   文件: Perspective.java
@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 ( "*" );
}
 
/** Collapse all projects shown in the Project Explorer. */
public static void collapseProjects(SWTWorkbenchBot bot) {
  for (SWTBotView explorer :
      bot.views(WidgetMatcherFactory.withPartId(IPageLayout.ID_PROJECT_EXPLORER))) {
    Widget explorerWidget = explorer.getWidget();
    Tree explorerTree = bot.widget(widgetOfType(Tree.class), explorerWidget);
    for (SWTBotTreeItem item : new SWTBotTree(explorerTree).getAllItems()) {
      item.collapse();
    }
  }
}
 
@Test
public void testAppEngineStandardJava8() {
  IProject project =
      projectCreator
          .withFacets(
              AppEngineStandardFacet.FACET.getVersion("JRE8"),
              JavaFacet.VERSION_1_8,
              WebFacetUtils.WEB_31)
          .getProject();
  SWTBotView explorer = SwtBotWorkbenchActions.openViewById(bot, IPageLayout.ID_PROJECT_EXPLORER);
  assertNotNull(explorer);
  SWTBotTreeItem selected = SwtBotProjectActions.selectProject(bot, explorer, project.getName());
  assertNotNull(selected);
  selected.expand();

  SwtBotTreeUtilities.waitUntilTreeHasItems(bot, selected);
  SWTBotTreeItem appEngineNode = selected.getNode(0);
  SwtBotTreeUtilities.waitUntilTreeTextMatches(
      bot, appEngineNode, startsWith("App Engine [standard: java8]"));
  appEngineNode.expand();
  // no children since we have no additional config files
  assertThat(appEngineNode.getNodes(), hasSize(0));

  // ensure App Engine content block does not appear in Deployment Descriptor
  SWTBotTreeItem deploymentDescriptorNode =
      SwtBotTreeUtilities.getMatchingNode(bot, selected, startsWith("Deployment Descriptor:"));
  deploymentDescriptorNode.expand();
  SwtBotTreeUtilities.waitUntilTreeHasItems(bot, deploymentDescriptorNode);
  SWTBotTreeItem firstNode = deploymentDescriptorNode.getNode(0);
  SwtBotTreeUtilities.waitUntilTreeTextMatches(bot, firstNode, not(startsWith("App Engine")));
}
 
源代码18 项目: google-cloud-eclipse   文件: PluginXmlTest.java
@Test
public void testAssociationWithProjectExplorer() {
  Element viewerContentBinding =
      findElement(
          "//plugin/extension[@point='org.eclipse.ui.navigator.viewer']/viewerContentBinding");
  assertEquals(IPageLayout.ID_PROJECT_EXPLORER, viewerContentBinding.getAttribute("viewerId"));
  findElement("includes", viewerContentBinding);
  Element contentExtension = findElement("includes/contentExtension", viewerContentBinding);
  assertEquals(
      "com.google.cloud.tools.eclipse.appengine.navigator",
      contentExtension.getAttribute("pattern"));
}
 
源代码19 项目: texlipse   文件: TexPerspectiveFactory.java
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);
}
 
源代码20 项目: spotbugs   文件: FindBugsPerspectiveFactory.java
@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);
}
 
源代码21 项目: birt   文件: ReportPerspective.java
private void addNewWizardShortcut( IPageLayout layout, String id )
{
	if ( extra == null || !extra.obsoleteNewWizardShortcut( id ) )
	{
		layout.addNewWizardShortcut( id );
	}
}
 
@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);
}
 
源代码23 项目: tmxeditor8   文件: Perspective.java
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);
}
 
源代码24 项目: tracecompass   文件: TracingPerspectiveChecker.java
/**
 * Set up arrays for test
 */
@Before
public void init() {
    fPerspectiveId = TracingPerspectiveFactory.ID;
    fViewIds = new ArrayList<>();
    fViewIds.addAll(Arrays.asList(new String[] {
            HistogramView.ID,
            TmfStatisticsView.ID,
            // Standard Eclipse views
            IPageLayout.ID_PROJECT_EXPLORER,
            IPageLayout.ID_PROP_SHEET,
            IPageLayout.ID_BOOKMARKS
    }));
}
 
源代码25 项目: tracecompass   文件: TmfAlignTimeAxisTest.java
@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);
}
 
源代码26 项目: goclipse   文件: LangPerspective.java
protected void addNewWizardShortcuts(IPageLayout layout) {
	// Lang
	layout.addNewWizardShortcut(LangNewProjectWizard.WIZARD_ID);
	
	// General
	layout.addNewWizardShortcut(BasicNewFolderResourceWizard.WIZARD_ID);
	layout.addNewWizardShortcut(BasicNewFileResourceWizard.WIZARD_ID);
}
 
源代码27 项目: ice   文件: MaterialsPerspective.java
@Override
public void createInitialLayout(IPageLayout layout) {

	// Add the perspective to the layout
	layout.addPerspectiveShortcut(MaterialsPerspective.ID);

	return;
}
 
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);
}
 
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);
}
 
@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);
}
 
 类所在包
 同包方法