Java Code Examples for org.eclipse.ui.IFolderLayout#addView()

The following examples show how to use org.eclipse.ui.IFolderLayout#addView() . 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: ScadaPerspectiveFactory.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
@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 2
Source File: BriefePerspektive.java    From elexis-3-core with Eclipse Public License 1.0 6 votes vote down vote up
public void createInitialLayout(IPageLayout layout){
	layout.setEditorAreaVisible(false);
	layout.setFixed(false);
	
	IFolderLayout left = layout.createFolder("Links.folder", IPageLayout.LEFT, 0.3f, IPageLayout.ID_EDITOR_AREA);
	IFolderLayout main = layout.createFolder("Haupt.Folder", IPageLayout.LEFT, 0.7f, IPageLayout.ID_EDITOR_AREA);
	left.addView(BriefAuswahl.ID);
	main.addView(TextView.ID);
	main.addView(TextTemplateView.ID);

	layout.addPerspectiveShortcut(ID);
	layout.addShowViewShortcut(UiResourceConstants.PatientDetailView2_ID);
	layout.addShowViewShortcut(KonsDetailView.ID);
	layout.addShowViewShortcut(BriefAuswahl.ID);
	layout.addShowViewShortcut(TextView.ID);
	
}
 
Example 3
Source File: PythonPerspectiveFactory.java    From Pydev with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * @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 4
Source File: ControlPerspectiveFactory.java    From tracecompass with Eclipse Public License 2.0 6 votes vote down vote up
@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 5
Source File: GdbPerspectiveFactory.java    From tracecompass with Eclipse Public License 2.0 6 votes vote down vote up
@Override
public void createInitialLayout(IPageLayout layout) {

    layout.setEditorAreaVisible(true);

    // Create the project folder
    IFolderLayout projectFolder = layout.createFolder(ProjectFolder, IPageLayout.LEFT, 0.15f, EditorArea);
    projectFolder.addView(PROJECT_VIEW_ID);

    // Create the console folder
    IFolderLayout consoleFolder = layout.createFolder(ConsoleFolder, IPageLayout.BOTTOM, 0.50f, ProjectFolder);
    consoleFolder.addView(CONSOLE_VIEW_ID);

    // Create the debug folder
    IFolderLayout debugFolder = layout.createFolder(DebugFolder, IPageLayout.TOP, 0.50f, EditorArea);
    debugFolder.addView(DEBUG_VIEW_ID);

    // Create the middle right folder
    IFolderLayout traceControlFolder = layout.createFolder(TraceControlFolder, IPageLayout.RIGHT, 0.50f, DebugFolder);
    traceControlFolder.addView(TRACE_CONTROL_VIEW_ID);

    layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
 
Example 6
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 7
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 8
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 9
Source File: ExamplePerspective.java    From dawnsci with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Creates the initial layout for a page.
 */
public void createInitialLayout(IPageLayout layout) {
	
	layout.setEditorAreaVisible(false);
	addFastViews(layout);
	addViewShortcuts(layout);
	addPerspectiveShortcuts(layout);
	{
		IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.LEFT, 0.5f, IPageLayout.ID_EDITOR_AREA);
		folderLayout.addView("org.dawnsci.plotting.examples.xyExample");
		folderLayout.addView("org.dawnsci.plotting.examples.xyUpdateExample");
		folderLayout.addView("org.dawnsci.plotting.examples.axisExample");
		folderLayout.addView("org.dawnsci.plotting.examples.barExample");
		folderLayout.addView("org.dawnsci.plotting.examples.imageExample");
		folderLayout.addView("org.dawnsci.plotting.examples.sectorExample");
		folderLayout.addView("org.dawnsci.plotting.examples.surfaceExample");
		folderLayout.addView("org.dawnsci.plotting.examples.vectorExample");
		folderLayout.addView("org.dawnsci.plotting.examples.compositeExample");
		folderLayout.addView("org.dawnsci.plotting.examples.volumeExample");
		folderLayout.addView("org.dawnsci.plotting.examples.plane3DExample");
	}
}
 
Example 10
Source File: NetworkingPerspectiveFactory.java    From tracecompass with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public void createInitialLayout(@Nullable IPageLayout layout) {

    if (layout == null) {
        return;
    }

    // Editor area
    layout.setEditorAreaVisible(true);

    // Create the top left folder
    IFolderLayout topLeftFolder = layout.createFolder("topLeftFolder", IPageLayout.LEFT, 0.15f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topLeftFolder.addView(PROJECT_VIEW_ID);

    // Create the middle right folder
    IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, 0.40f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    middleRightFolder.addView(PROPERTIES_VIEW_ID);
    middleRightFolder.addView(HISTOGRAM_VIEW_ID);
    middleRightFolder.addView(STATISTICS_VIEW_ID);
    middleRightFolder.addView(COLOR_VIEW_ID);

    // Create the bottom right folder
    IFolderLayout bottomRightFolder = layout.createFolder("bottomRightFolder", IPageLayout.BOTTOM, 0.65f, "middleRightFolder"); //$NON-NLS-1$ //$NON-NLS-2$
    bottomRightFolder.addView(FILTER_VIEW_ID);
    bottomRightFolder.addView(BOOKMARKS_VIEW_ID);
    bottomRightFolder.addView(STREAM_LIST_VIEW_ID);

    // Populate menus, etc
    layout.addPerspectiveShortcut(ID);
    layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
 
Example 11
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 12
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 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: 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 15
Source File: PerspectiveFactory.java    From tracecompass with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public void createInitialLayout(IPageLayout layout) {

    layout.setEditorAreaVisible(true);

    addFastViews(layout);
    addViewShortcuts(layout);
    addPerspectiveShortcuts(layout);

    // Create the top left folder
    IFolderLayout topLeftFolder = layout.createFolder(
            "topLeftFolder", IPageLayout.LEFT, 0.15f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topLeftFolder.addView(PROJECT_VIEW_ID);

    // Create the bottom left folder
    IFolderLayout bottomLeftFolder = layout.createFolder(
            "bottomLeftFolder", IPageLayout.BOTTOM, 0.70f, "topLeftFolder"); //$NON-NLS-1$ //$NON-NLS-2$
    bottomLeftFolder.addView(CONTROL_VIEW_ID);

    // Create the top right folder
    IFolderLayout topRightFolder = layout.createFolder(
            "topRightFolder", IPageLayout.TOP, 0.40f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    topRightFolder.addView(RESOURCES_VIEW_ID);
    topRightFolder.addView(CONTROLFLOW_VIEW_ID);
    topRightFolder.addView(STATISTICS_VIEW_ID);

    // Create the bottom right folder
    IFolderLayout bottomRightFolder = layout.createFolder(
            "bottomRightFolder", IPageLayout.BOTTOM, 0.50f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    bottomRightFolder.addView(HISTOGRAM_VIEW_ID);
    bottomRightFolder.addView(PROPERTIES_VIEW_ID);
    bottomRightFolder.addView(BOOKMARKS_VIEW_ID);

    layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
 
Example 16
Source File: ReportPerspective.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
private void addLayoutView( IFolderLayout folder, int layoutPos, String id )
{
	if ( extra == null || !extra.obsoleteLayoutView( layoutPos, id ) )
	{
		folder.addView( id );
	}
}
 
Example 17
Source File: SARLDebugPerspectiveFactory.java    From sarl with Apache License 2.0 4 votes vote down vote up
@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: GranitePerspective.java    From aem-eclipse-developer-tools with Apache License 2.0 4 votes vote down vote up
private void addViews() {
		// Creates the overall folder layout. 
		// Note that each new Folder uses a percentage of the remaining EditorArea.
		
        IFolderLayout veryBottom =
                factory.createFolder(
                        "veryBottom",
                        IPageLayout.BOTTOM,
                        0.82f,
                        factory.getEditorArea());
//      leftBottom.addView("org.eclipse.wst.server.ui.ServersView");
        veryBottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);

		IFolderLayout left =
				factory.createFolder(
					"topLeft", //NON-NLS-1
					IPageLayout.LEFT,
					0.3f,
					factory.getEditorArea());
		left.addView(IPageLayout.ID_PROJECT_EXPLORER);
		left.addPlaceholder(IPageLayout.ID_RES_NAV);
		
		IFolderLayout leftMiddle =
				factory.createFolder(
						"leftMiddle",
						IPageLayout.BOTTOM,
						0.75f,
						IPageLayout.ID_PROJECT_EXPLORER);
		leftMiddle.addView("org.eclipse.wst.server.ui.ServersView");
		
		IFolderLayout bottomRight =
			factory.createFolder(
				"bottomRight", //NON-NLS-1
				IPageLayout.BOTTOM,
				0.7f,
				factory.getEditorArea());
//		bottomRight.addView(IPageLayout.ID_PROP_SHEET);
		bottomRight.addView("com.adobe.granite.ide.views.ui.views.JcrPropertiesView");
		bottomRight.addView(IPageLayout.ID_PROBLEM_VIEW);
		bottomRight.addView("org.eclipse.team.ui.GenericHistoryView"); //NON-NLS-1
//		bottomRight.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);

		IFolderLayout right =
				factory.createFolder(
						"right",
						IPageLayout.RIGHT,
						0.75f,
						factory.getEditorArea());
		right.addView(IPageLayout.ID_OUTLINE);
		
		factory.addFastView("org.eclipse.team.ccvs.ui.RepositoriesView",0.50f); //NON-NLS-1
		factory.addFastView("org.eclipse.team.sync.views.SynchronizeView", 0.50f); //NON-NLS-1
	}
 
Example 19
Source File: JavaPerspectiveFactory.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
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 20
Source File: Perspective.java    From jbt with Apache License 2.0 3 votes vote down vote up
public void createInitialLayout(IPageLayout layout) {
	layout.setEditorAreaVisible(true);

	layout.addView(NodesNavigator.ID, IPageLayout.LEFT, 0.3f, layout.getEditorArea());

	IFolderLayout rightFolderLayout = layout.createFolder(RIGHT_FOLDER_ID, IPageLayout.RIGHT,
			0.6f, layout.getEditorArea());
	
	IFolderLayout bottomRightFolderLayout=layout.createFolder(BOTTOM_RIGHT_FOLDER_ID, IPageLayout.BOTTOM, 0.5f, RIGHT_FOLDER_ID);
	
	rightFolderLayout.addView(NodeInfo.ID);
	bottomRightFolderLayout.addView(NodesSearcher.ID);
}