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

The following examples show how to use org.eclipse.ui.IPageLayout#addShowViewShortcut() . 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: 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 2
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 3
Source File: AbrechnungsPerspektive.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 fld = layout.createFolder("AbrechnungsFolder", IPageLayout.LEFT, 0.6f, IPageLayout.ID_EDITOR_AREA);
	IFolderLayout frd = layout.createFolder("Detailfolder", IPageLayout.LEFT, 0.4f, IPageLayout.ID_EDITOR_AREA);
	fld.addView(PatHeuteView.ID);
	fld.addView(KonsZumVerrechnenView.ID);
	fld.addView(RechnungsListeView.ID);
	frd.addView(RnDetailView.ID);
	frd.addView(KonsDetailView.ID);
	frd.addPlaceholder(FallDetailView.ID);
	frd.addPlaceholder(UiResourceConstants.PatientDetailView2_ID);
	layout.addShowViewShortcut(PatHeuteView.ID);
	layout.addShowViewShortcut(KonsZumVerrechnenView.ID);
	layout.addShowViewShortcut(RnDetailView.ID);
	layout.addShowViewShortcut(KonsDetailView.ID);
	layout.addShowViewShortcut(RechnungsListeView.ID);
}
 
Example 4
Source File: PythonPerspectiveFactory.java    From Pydev with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * @param layout
 */
public void defineActions(IPageLayout layout) {
    layout.addNewWizardShortcut(PythonProjectWizard.WIZARD_ID);
    layout.addNewWizardShortcut(PythonSourceFolderWizard.WIZARD_ID);
    layout.addNewWizardShortcut(PythonPackageWizard.WIZARD_ID);
    layout.addNewWizardShortcut(PythonModuleWizard.WIZARD_ID);
    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$

    layout.addShowViewShortcut("org.python.pydev.navigator.view");
    layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
    layout.addShowViewShortcut("org.python.pydev.debug.pyunit.pyUnitView");
    layout.addShowViewShortcut("org.python.pydev.debug.profile.ProfileView");
    layout.addShowViewShortcut("org.python.pydev.views.PyCodeCoverageView");
    layout.addShowViewShortcut(NewSearchUI.SEARCH_VIEW_ID);
    layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
    layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
    //layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);-- Navigator no longer supported
    layout.addShowViewShortcut("org.eclipse.pde.runtime.LogView");
    layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);

    layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
    layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);

}
 
Example 5
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 6
Source File: LeistungPerspektive.java    From elexis-3-core with Eclipse Public License 1.0 5 votes vote down vote up
public void createInitialLayout(IPageLayout layout){
	layout.setEditorAreaVisible(false);
	layout.setFixed(false);
	layout.addPlaceholder(LeistungenView.ID, IPageLayout.LEFT, 0.3f,
		IPageLayout.ID_EDITOR_AREA);
	layout.addView(CodeDetailView.ID, IPageLayout.LEFT, 0.8f, IPageLayout.ID_EDITOR_AREA);
	layout.addShowViewShortcut(CodeDetailView.ID);
	
}
 
Example 7
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 8
Source File: LangPerspective.java    From goclipse with Eclipse Public License 1.0 5 votes vote down vote up
protected void addShowViewShortcuts(IPageLayout layout) {
	layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
	
	layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
	layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
	layout.addShowViewShortcut(NewSearchUI.SEARCH_VIEW_ID);
	layout.addShowViewShortcut(IPageLayout.ID_PROGRESS_VIEW);
	layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
}
 
Example 9
Source File: ReportPerspective.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
private void addShowViewShortcut( IPageLayout layout, String id )
{
	if ( extra == null || !extra.obsoleteShowViewShortcut( id ) )
	{
		layout.addShowViewShortcut( id );
	}
}
 
Example 10
Source File: TexPerspectiveFactory.java    From texlipse with Eclipse Public License 1.0 5 votes vote down vote up
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);
}
 
Example 11
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 12
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 13
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 14
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 15
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 16
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 17
Source File: ModelingPerspective.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void createInitialLayout(final IPageLayout layout) {
	layout.addShowViewShortcut(IGui.INTERACTIVE_CONSOLE_VIEW_ID);
	layout.setEditorAreaVisible(true);
}