Java Code Examples for org.eclipse.ui.IPageLayout#getEditorArea()

The following examples show how to use org.eclipse.ui.IPageLayout#getEditorArea() . 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: ReportRCPPerspective.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Defines the initial layout for a page.
 */
private void defineLayout( IPageLayout layout )
{
	// Editors are placed for free.
	String editorArea = layout.getEditorArea( );

	// Top left.
	IFolderLayout topLeft = layout.createFolder( "topLeft", IPageLayout.LEFT, (float) 0.26, editorArea );//$NON-NLS-1$
	topLeft.addView( PaletteView.ID );
	topLeft.addView( DataView.ID );
	topLeft.addView( LibraryExplorerView.ID );

	// Bottom left.
	IFolderLayout bottomLeft = layout.createFolder( "bottomLeft", IPageLayout.BOTTOM, (float) 0.50,//$NON-NLS-1$
			"topLeft" );//$NON-NLS-1$
	bottomLeft.addView( IPageLayout.ID_OUTLINE );

	// Bottom right.
	IFolderLayout bootomRight = layout.createFolder( "bootomRight", IPageLayout.BOTTOM, (float) 0.66, editorArea );//$NON-NLS-1$
	bootomRight.addView( AttributeView.ID );
}
 
Example 2
Source File: MarkdownEditorPerspectiveFactory.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void createInitialLayout(final IPageLayout layout) {
    final String editorArea = layout.getEditorArea();

    final IFolderLayout leftView = layout.createFolder(
            "leftView", IPageLayout.LEFT, getExplorerViewRatio(), editorArea);
    leftView.addView("org.bonitasoft.studio.application.project.explorer");

    
    final IFolderLayout bottomfolder = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, editorArea); //$NON-NLS-1$
    if (RepositoryManager.getInstance().getCurrentRepository().isShared("org.eclipse.egit.core.GitProvider")) {
        bottomfolder.addView("org.eclipse.egit.ui.StagingView");
        bottomfolder.addPlaceholder("org.eclipse.team.ui.GenericHistoryView");
    }
    bottomfolder.addView("org.eclipse.ui.views.ProblemView");
    
    
    final IFolderLayout rightFolder = layout.createFolder("right", IPageLayout.RIGHT, 0.85f, editorArea); //$NON-NLS-1$
    rightFolder.addView(IPageLayout.ID_OUTLINE);
    
    IFolderLayout htmlViewFolder = layout.createFolder("right", IPageLayout.RIGHT, 0.5f, editorArea); //$NON-NLS-1$
    htmlViewFolder.addView("code.satyagraha.gfm.viewer.views.GfmView");
}
 
Example 3
Source File: PerspectiveJavaFactory.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
@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 4
Source File: CodeCheckerPerspectiveFactory.java    From CodeCheckerEclipsePlugin with Eclipse Public License 1.0 6 votes vote down vote up
private void defineActions(IPageLayout layout) {
    String editorArea = layout.getEditorArea();

    IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, (float) 0.26,
            editorArea);
    left.addView(IPageLayout.ID_PROJECT_EXPLORER);

    IFolderLayout middleLeft = layout.createFolder("middleLeft", IPageLayout.BOTTOM, (float)
            0.33, "left");
    middleLeft.addView(ReportListView.ID);
    middleLeft.addView(ReportListViewProject.ID);
    
    IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, (float) 0.8,
            editorArea);
    right.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    right.addView(IPageLayout.ID_OUTLINE);
    right.addView(IPageLayout.ID_TASK_LIST);

    IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.8,
            editorArea);
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
}
 
Example 5
Source File: TypeScriptPerspectiveFactory.java    From typescript.java with MIT License 6 votes vote down vote up
@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 6
Source File: ModelingPerspectiveFactory.java    From statecharts with Eclipse Public License 1.0 6 votes vote down vote up
private void defineLayout(IPageLayout layout) {
	String editorArea = layout.getEditorArea();

	IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
			0.16f, editorArea);
	left.addView(IPageLayout.ID_PROJECT_EXPLORER);
	// Included to get rid of a warning issued by the workbench
	left.addPlaceholder("org.eclipse.jdt.ui.PackageExplorer");

	IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT,
			0.84f, editorArea);
	right.addView(IPageLayout.ID_OUTLINE);

	IFolderLayout bottom = layout.createFolder("bottom",
			IPageLayout.BOTTOM, 0.65f, editorArea);
	bottom.addView(IPageLayout.ID_PROP_SHEET);
	bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
	bottom.addView(IPageLayout.ID_TASK_LIST);
}
 
Example 7
Source File: SimulationPerspectiveFactory.java    From statecharts with Eclipse Public License 1.0 6 votes vote down vote up
private void defineLayout(IPageLayout layout) {
	String editorArea = layout.getEditorArea();

	IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.16f, editorArea);
	left.addView(IPageLayout.ID_PROJECT_EXPLORER);
	// Included to get rid of a warning issued by the workbench
	left.addPlaceholder("org.eclipse.jdt.ui.PackageExplorer");

	IFolderLayout bottomleft = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, 0.68f, "left");
	bottomleft.addView(IPageLayout.ID_OUTLINE);

	IFolderLayout bottomRight = layout.createFolder("right", IPageLayout.RIGHT, 0.76f, editorArea);
	bottomRight.addView("org.yakindu.sct.simulation.ui.declarationview");
	bottomRight.addView("org.eclipse.debug.ui.BreakpointView");
	bottomRight.addView("org.yakindu.sct.simulation.snapshots.ui.snapshotsview");
	bottomRight.addPlaceholder("org.eclipse.debug.ui.DebugView");
}
 
Example 8
Source File: TSPerspective.java    From tmxeditor8 with GNU General Public License v2.0 6 votes vote down vote up
/**
	 * 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 9
Source File: BdmPerspectiveFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@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 10
Source File: CasEditorPerspectiveFactory.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
private void defineLayout(IPageLayout layout) {
  String editorArea = layout.getEditorArea();

  // left views
  IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
          0.19f, editorArea);
  left.addView("org.eclipse.ui.navigator.ProjectExplorer");

  // right views
  IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT,
          0.70f, editorArea);

  right.addView(IPageLayout.ID_OUTLINE);
  right.addView(FeatureStructureBrowserView.ID);
  
  IFolderLayout rightBottomCorner  = layout.createFolder("rightBottomCorner", IPageLayout.BOTTOM,
          0.75f, "right");
  rightBottomCorner.addView(AnnotationStyleView.ID);

  // bottom views
  IFolderLayout rightBottom = layout.createFolder("rightBottom",
          IPageLayout.BOTTOM, 0.75f, editorArea);

  rightBottom.addView(EditView.ID);

  IFolderLayout leftBottom = layout.createFolder("leftBottom",
          IPageLayout.RIGHT, 0.5f, EditView.ID);

  leftBottom.addView(EditView.ID_2);
}
 
Example 11
Source File: Perspective.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
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 12
Source File: TSPerspective.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
/**
	 * 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 13
Source File: TextEditorPerspectiveFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@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 14
Source File: WelcomePagePerspectiveFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@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 15
Source File: RcpPerspective.java    From olca-app with Mozilla Public License 2.0 5 votes vote down vote up
@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 16
Source File: SVNPerspective.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 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 17
Source File: SimulationPerspective.java    From gama with GNU General Public License v3.0 5 votes vote down vote up
@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 18
Source File: ApplicationPerspectiveFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@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 19
Source File: SARLPerspectiveFactory.java    From sarl with Apache License 2.0 4 votes vote down vote up
@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 20
Source File: MSF4JPerspective.java    From msf4j with Apache License 2.0 3 votes vote down vote up
@Override
public void createInitialLayout(IPageLayout layout) {
	String editorArea = layout.getEditorArea();

	// Top left: Project Explorer
	IFolderLayout topLeft = layout.createFolder("topLeft",
			IPageLayout.LEFT, 0.15f, editorArea);
	topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER);


	
}