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

The following examples show how to use org.eclipse.ui.IPageLayout#addPerspectiveShortcut() . 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: TestingPerspectiveFactory.java    From tracecompass with Eclipse Public License 2.0 6 votes vote down vote up
@Override
public void createInitialLayout(IPageLayout layout) {

    // Editor area
    layout.setEditorAreaVisible(true);

    // Create the left folder
    IFolderLayout leftFolder = layout.createFolder(
            "leftFolder", IPageLayout.LEFT, 0.25f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    leftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);

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

    // Populate menus, etc
    layout.addPerspectiveShortcut(ID);
    layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
 
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: SVNPerspective.java    From APICloud-Studio with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Defines the initial actions for a page.  
 */

public void defineActions(IPageLayout layout) {

	// Add "new wizards". They will be present in File/New menu
	layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.project"); //$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$

	// Add "show views". They will be present in "show view" menu
	layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
	layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
	layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
	layout.addShowViewShortcut(ISVNUIConstants.HISTORY_VIEW_ID);
	layout.addShowViewShortcut(RepositoriesView.VIEW_ID);
	layout.addShowViewShortcut(ISynchronizeView.VIEW_ID);
	
	// Add  "perspective short cut"
	layout.addPerspectiveShortcut("org.eclipse.ui.resourcePerspective"); //$NON-NLS-1$
	layout.addPerspectiveShortcut("org.eclipse.team.ui.TeamSynchronizingPerspective"); //$NON-NLS-1$
}
 
Example 4
Source File: TmfAlignTimeAxisTest.java    From tracecompass with Eclipse Public License 2.0 5 votes vote down vote up
@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 middle right folder
    IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, EDITOR_AREA_RATIO, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    middleRightFolder.addView(HistogramView.ID);
    middleRightFolder.addView(TimeChartView.ID);

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

    // Populate menus, etc
    layout.addPerspectiveShortcut(ID);
    layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
}
 
Example 5
Source File: TmfAlignTimeAxisTest.java    From tracecompass with Eclipse Public License 2.0 5 votes vote down vote up
@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);

    IFolderLayout bottomLeftFolder = layout.createFolder("bottomLeftFolder", IPageLayout.BOTTOM, 0.5f, "topLeftFolder"); //$NON-NLS-1$
    bottomLeftFolder.addView(TimeGraphViewStub.ID);

    // Create the middle right folder
    IFolderLayout middleRightFolder = layout.createFolder("middleRightFolder", IPageLayout.BOTTOM, EDITOR_AREA_RATIO, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    middleRightFolder.addView(HistogramView.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 6
Source File: TracingPerspectiveFactory.java    From tracecompass with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public void createInitialLayout(IPageLayout layout) {

    // 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.50f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
    middleRightFolder.addView(STATISTICS_VIEW_ID);

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

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

	// Setup the perspective shortcut button in the top right corner
	layout.addPerspectiveShortcut(Perspective.ID);

	// Reserve space for the Console and Properties
	IFolderLayout bottomRight = layout.createFolder("bottomRight",
			IPageLayout.BOTTOM, 0.70f, layout.getEditorArea());
	bottomRight.addView(IConsoleConstants.ID_CONSOLE_VIEW);
	bottomRight.addView(IPageLayout.ID_PROP_SHEET);

	return;
}
 
Example 9
Source File: MaterialsPerspective.java    From ice with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createInitialLayout(IPageLayout layout) {

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

	return;
}
 
Example 10
Source File: ReportRCPPerspective.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Defines the Actions
 */
private void defineActions( IPageLayout layout )
{
	// Add "show views".
	layout.addShowViewShortcut( IPageLayout.ID_OUTLINE );
	layout.addShowViewShortcut( PaletteView.ID );
	layout.addShowViewShortcut( AttributeView.ID );
	layout.addShowViewShortcut( DataView.ID );
	layout.addShowViewShortcut( LibraryExplorerView.ID );
	layout.addShowViewShortcut( IPageLayout.ID_PROP_SHEET );

	layout.addPerspectiveShortcut( BIRT_REPORT_RCP_PERSPECTIVE );
}
 
Example 11
Source File: CasEditorPerspectiveFactory.java    From uima-uimaj with Apache License 2.0 5 votes vote down vote up
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 12
Source File: LangPerspective.java    From goclipse with Eclipse Public License 1.0 4 votes vote down vote up
protected void addPerspectiveShotcuts(IPageLayout layout) {
	layout.addPerspectiveShortcut("org.eclipse.debug.ui.DebugPerspective"); //$NON-NLS-1$
	layout.addPerspectiveShortcut("org.eclipse.ui.resourcePerspective"); //$NON-NLS-1$
	layout.addPerspectiveShortcut("org.eclipse.team.ui.TeamSynchronizingPerspective"); //$NON-NLS-1$
}
 
Example 13
Source File: MOOSEPerspective.java    From ice with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public void createInitialLayout(IPageLayout layout) {
	// Add the perspective to top right corner.
	layout.addPerspectiveShortcut(ID);
}
 
Example 14
Source File: PatientPerspektive.java    From elexis-3-core with Eclipse Public License 1.0 4 votes vote down vote up
public void createInitialLayout(final IPageLayout layout){
	layout.setEditorAreaVisible(false);
	layout.setFixed(false);
	IFolderLayout left =
		layout.createFolder("Links.folder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA);
	IFolderLayout main =
		layout.createFolder("Haupt.Folder", IPageLayout.RIGHT, 0.3f, "Links.folder"); //$NON-NLS-1$
	IFolderLayout leftbottom =
		layout.createFolder("links.unten", IPageLayout.BOTTOM, 0.7f, "Links.folder");
	IFolderLayout right =
		layout.createFolder("Rechts.folder", IPageLayout.RIGHT, 0.7f, "Haupt.Folder");
	
	main.addView(UiResourceConstants.PatientDetailView2_ID);
	left.addView(UiResourceConstants.PatientenListeView_ID);
	leftbottom.addView(FaelleView.ID);
	left.addView(PatHeuteView.ID);
	main.addView(KonsDetailView.ID);
	
	main.addView(UiResourceConstants.LaborView_ID);
	main.addView(RezepteView.ID);
	main.addView(AUF2.ID);
	
	right.addView(KonsListe.ID);
	
	main.addPlaceholder(FallDetailView.ID);
	main.addPlaceholder(TextView.ID);
	main.addPlaceholder(KompendiumView.ID);

	layout.addPerspectiveShortcut(UiResourceConstants.PatientPerspektive_ID);
	layout.addShowViewShortcut(UiResourceConstants.PatientDetailView2_ID);
	layout.addShowViewShortcut(UiResourceConstants.PatientenListeView_ID);
	// layout.addShowViewShortcut(FallListeView.ID);
	layout.addPerspectiveShortcut(FaelleView.ID);
	layout.addShowViewShortcut(KonsListe.ID);
	layout.addShowViewShortcut(PatHeuteView.ID);
	layout.addShowViewShortcut(KonsDetailView.ID);
	layout.addShowViewShortcut(RezepteView.ID);
	layout.addShowViewShortcut(FallDetailView.ID);
	
	UiDesk.asyncExec(new Runnable() {
		public void run(){
			
			ElexisFastViewUtil.addToFastView(UiResourceConstants.PatientPerspektive_ID,
				LeistungenView.ID);
			ElexisFastViewUtil.addToFastView(UiResourceConstants.PatientPerspektive_ID,
				DiagnosenView.ID);
			
		}
	});
	
}
 
Example 15
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 16
Source File: JavaHierarchyPerspectiveFactory.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_TYPE_HIERARCHY);
	folder.addPlaceholder(IPageLayout.ID_OUTLINE);
	folder.addPlaceholder(JavaUI.ID_PACKAGES);
	folder.addPlaceholder(JavaPlugin.ID_RES_NAV);
	folder.addPlaceholder(IPageLayout.ID_PROJECT_EXPLORER);

	IPlaceholderFolderLayout outputfolder= layout.createPlaceholderFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$
	outputfolder.addPlaceholder(IPageLayout.ID_PROBLEM_VIEW);
	outputfolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
	outputfolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
	outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
	outputfolder.addPlaceholder(JavaUI.ID_SOURCE_VIEW);
	outputfolder.addPlaceholder(JavaUI.ID_JAVADOC_VIEW);
	outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);

	layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
	layout.addActionSet(JavaUI.ID_ACTION_SET);
	layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET);

	// views - java
	layout.addShowViewShortcut(JavaUI.ID_PACKAGES);
	layout.addShowViewShortcut(JavaUI.ID_TYPE_HIERARCHY);

	layout.addShowViewShortcut(NewSearchUI.SEARCH_VIEW_ID);

	// views - debugging
	layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);

	// views - standard workbench
	layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
	layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
	layout.addShowViewShortcut(JavaPlugin.ID_RES_NAV);
	layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
	layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID);
	layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
	layout.addShowViewShortcut(TemplatesView.ID);
	layout.addShowViewShortcut("org.eclipse.pde.runtime.LogView"); //$NON-NLS-1$

	layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.JavaProjectWizard"); //$NON-NLS-1$
	layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewPackageCreationWizard"); //$NON-NLS-1$
	layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewClassCreationWizard"); //$NON-NLS-1$
	layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard"); //$NON-NLS-1$
	layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewEnumCreationWizard"); //$NON-NLS-1$
	layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewAnnotationCreationWizard"); //$NON-NLS-1$
	layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard");	 //$NON-NLS-1$
	layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSnippetFileCreationWizard"); //$NON-NLS-1$
	layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewJavaWorkingSetWizard"); //$NON-NLS-1$
	layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");//$NON-NLS-1$
	layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");//$NON-NLS-1$
	layout.addNewWizardShortcut("org.eclipse.ui.editors.wizards.UntitledTextFileWizard");//$NON-NLS-1$

	// 'Window' > 'Open Perspective' contributions
	layout.addPerspectiveShortcut(JavaUI.ID_PERSPECTIVE);
	layout.addPerspectiveShortcut(JavaUI.ID_BROWSING_PERSPECTIVE);
	layout.addPerspectiveShortcut(IDebugUIConstants.ID_DEBUG_PERSPECTIVE);

}
 
Example 17
Source File: JavaBrowsingPerspectiveFactory.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
public void createInitialLayout(IPageLayout layout) {
	if (stackBrowsingViewsVertically())
		createVerticalLayout(layout);
	else
		createHorizontalLayout(layout);

	// action sets
	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_TYPE_HIERARCHY);
	layout.addShowViewShortcut(JavaUI.ID_PACKAGES);
	layout.addShowViewShortcut(JavaUI.ID_PROJECTS_VIEW);
	layout.addShowViewShortcut(JavaUI.ID_PACKAGES_VIEW);
	layout.addShowViewShortcut(JavaUI.ID_TYPES_VIEW);
	layout.addShowViewShortcut(JavaUI.ID_MEMBERS_VIEW);
	layout.addShowViewShortcut(JavaUI.ID_SOURCE_VIEW);
	layout.addShowViewShortcut(JavaUI.ID_JAVADOC_VIEW);
	layout.addShowViewShortcut(TemplatesView.ID);

	// 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("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_PERSPECTIVE);
	layout.addPerspectiveShortcut(IDebugUIConstants.ID_DEBUG_PERSPECTIVE);

}
 
Example 18
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 19
Source File: SimulationPerspectiveFactory.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
private void defineActions(IPageLayout layout) {
	layout.addPerspectiveShortcut(IYakinduSctPerspectives.ID_PERSPECTIVE_SCT_MODELING);
	layout.addActionSet("org.eclipse.debug.ui.launchActionSet");
}
 
Example 20
Source File: ModelingPerspectiveFactory.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
private void defineActions(IPageLayout layout) {
	layout.addPerspectiveShortcut(IYakinduSctPerspectives.ID_PERSPECTIVE_SCT_SIMULATION);
	layout.addActionSet("org.eclipse.debug.ui.launchActionSet");
}