当前位置: 首页>>代码示例>>Java>>正文


Java IPageLayout.addActionSet方法代码示例

本文整理汇总了Java中org.eclipse.ui.IPageLayout.addActionSet方法的典型用法代码示例。如果您正苦于以下问题:Java IPageLayout.addActionSet方法的具体用法?Java IPageLayout.addActionSet怎么用?Java IPageLayout.addActionSet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.ui.IPageLayout的用法示例。


在下文中一共展示了IPageLayout.addActionSet方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: defineActions

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
/**
 * Defines the initial actions for a page.
 * 
 * @param layout
 *            The layout we are filling
 */
private void defineActions(IPageLayout layout) {
	// Add "new wizards".
	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".
	layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
	layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS);
	layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
	layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
	layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
	layout.addShowViewShortcut(IPageLayout.ID_PROGRESS_VIEW);
	layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);

	layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:23,代码来源:ActivitiPerspective.java

示例2: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {
	IFolderLayout consoleFolder = layout.createFolder(ID_FOLDER_CONSOLE, IPageLayout.BOTTOM, (float) 0.66, layout.getEditorArea());
	consoleFolder.addView(ID_CONSOLE_VIEW);

	IFolderLayout debugFolder = layout.createFolder(ID_FOLDER_DEBUG, IPageLayout.RIGHT, (float) 0.25, ID_FOLDER_CONSOLE);

	debugFolder.addView(ID_RESULT_VIEW);
	debugFolder.addView(ID_UNIT_VIEW);
	debugFolder.addView(IDebugUIConstants.ID_VARIABLE_VIEW);
	debugFolder.addView(IDebugUIConstants.ID_BREAKPOINT_VIEW);
	debugFolder.addPlaceholder(IDebugUIConstants.ID_EXPRESSION_VIEW);
	debugFolder.addPlaceholder(IDebugUIConstants.ID_REGISTER_VIEW);

	IFolderLayout explorerFolder = layout.createFolder(ID_FOLDER_EXPLORER, IPageLayout.LEFT, (float)0.25, layout.getEditorArea()); //$NON-NLS-1$
	explorerFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);

	IFolderLayout jimpleFolder = layout.createFolder(ID_FOLDER_JIMPLE, IPageLayout.RIGHT, (float) 0.33, layout.getEditorArea());
	jimpleFolder.addView(ID_JIMPLE_VIEW);

	IFolderLayout graphFolder = layout.createFolder(ID_FOLDER_GRAPH, IPageLayout.RIGHT, (float) 0.33, ID_FOLDER_JIMPLE);
	graphFolder.addView(ID_GRAPH_VIEW);

	layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
	layout.addActionSet(IDebugUIConstants.DEBUG_ACTION_SET);

	setContentsOfShowViewMenu(layout);
}
 
开发者ID:VisuFlow,项目名称:visuflow-plugin,代码行数:29,代码来源:VisuflowEditorPerspective.java

示例3: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {

	this.layoutFactory = layout;
	addViews();
	layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET);
	layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");
	layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");
}
 
开发者ID:curiosag,项目名称:ftc,代码行数:10,代码来源:FtcPerspective.java

示例4: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(final IPageLayout layout) {

    layout.addActionSet("org.eclipse.debug.ui.debugActionSet");
    layout.addActionSet("org.eclipse.debug.ui.launchActionSet");
    layout.addActionSet("org.eclipse.debug.ui.profileActionSet");

    layout.addNewWizardShortcut("org.apache.karaf.eik.ui.karafPlatformProject");

    final IFolderLayout leftFolder =
        layout.createFolder(
                LEFT_FOLDER,
                IPageLayout.LEFT,
                0.20f,
                layout.getEditorArea());

    leftFolder.addView("org.eclipse.ui.navigator.ProjectExplorer");

    final IFolderLayout bottomFolder =
        layout.createFolder(
                BOTTOM_FOLDER,
                IPageLayout.BOTTOM,
                0.75f,
                layout.getEditorArea());

    bottomFolder.addView(BundlesView.VIEW_ID);
    bottomFolder.addView(ServicesView.VIEW_ID);
    bottomFolder.addView("org.eclipse.ui.console.ConsoleView");
}
 
开发者ID:apache,项目名称:karaf-eik,代码行数:30,代码来源:KarafWorkbenchPerspectiveFactory.java

示例5: defineActions

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
/**
   * add items and actions set to the window
   * 
   * @param layout
   *            layout of the perspective
   */
  protected void defineActions(final IPageLayout layout) {
      // project wizards
      layout.addNewWizardShortcut("org.eclipse.pde.ui.NewProjectWizard");
      layout.addNewWizardShortcut("org.eclipse.ecoretools.emf.design.wizardID");
      layout.addNewWizardShortcut("org.eclipse.sirius.ui.specificationproject.wizard");
      layout.addNewWizardShortcut(ModelingProjectWizard.ID);
      layout.addNewWizardShortcut("fr.inria.diverse.k3.ui.wizards.WizardNewProjectK3Plugin");
      // project content wizards
layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewPackageCreationWizard"); //$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(NewSessionWizard.ID);
      layout.addNewWizardShortcut("org.eclipse.sirius.presentation.DescriptionModelWizardID");
      
      
      // show view shortcuts
      layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
      layout.addShowViewShortcut(JavaUI.ID_PACKAGES);
      layout.addShowViewShortcut(IModelExplorerView.ID);
      layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
      layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
      layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
      layout.addShowViewShortcut(IPDEUIConstants.PLUGINS_VIEW_ID);
      layout.addShowViewShortcut("org.eclipse.pde.runtime.RegistryBrowser");
      layout.addShowViewShortcut(JavaUI.ID_TYPE_HIERARCHY);
      layout.addShowViewShortcut(JavaUI.ID_JAVADOC_VIEW);
      layout.addShowViewShortcut(JavaUI.ID_SOURCE_VIEW);
      layout.addShowViewShortcut("org.eclipse.emf.ecoretools.registration.viewregisteredpackages");
layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
layout.addShowViewShortcut("org.eclipse.emf.ecoretools.internal.views.EClassHierarchyView");
layout.addShowViewShortcut("org.eclipse.emf.ecoretools.internal.views.EReferencesView");
      
      // 'Window' > 'Open Perspective' contributions
      layout.addPerspectiveShortcut("org.eclipse.sirius.ui.tools.perspective.design");
      layout.addPerspectiveShortcut("org.eclipse.pde.ui.PDEPerspective");
   	layout.addPerspectiveShortcut(JavaUI.ID_PERSPECTIVE);
   	layout.addPerspectiveShortcut(JavaUI.ID_BROWSING_PERSPECTIVE);
   	layout.addPerspectiveShortcut(IDebugUIConstants.ID_DEBUG_PERSPECTIVE);
   	layout.addPerspectiveShortcut("org.eclipse.emf.ecoretools.perspective");
   	
   	// Action set
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);
  }
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:53,代码来源:XDSMLPerspectiveFactory.java

示例6: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout layout) {
  layout.addNewWizardShortcut("org.apache.hadoop.eclipse.NewDriverWizard");
  layout.addNewWizardShortcut("org.apache.hadoop.eclipse.NewMapperWizard");
  layout
      .addNewWizardShortcut("org.apache.hadoop.eclipse.NewReducerWizard");

  IFolderLayout left =
      layout.createFolder("org.apache.hadoop.eclipse.perspective.left",
          IPageLayout.LEFT, 0.2f, layout.getEditorArea());
  left.addView("org.eclipse.ui.navigator.ProjectExplorer");

  IFolderLayout bottom =
      layout.createFolder("org.apache.hadoop.eclipse.perspective.bottom",
          IPageLayout.BOTTOM, 0.7f, layout.getEditorArea());
  bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
  bottom.addView(IPageLayout.ID_TASK_LIST);
  bottom.addView(JavaUI.ID_JAVADOC_VIEW);
  bottom.addView("org.apache.hadoop.eclipse.view.servers");
  bottom.addPlaceholder(JavaUI.ID_SOURCE_VIEW);
  bottom.addPlaceholder(IPageLayout.ID_PROGRESS_VIEW);
  bottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
  bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);

  IFolderLayout right =
      layout.createFolder("org.apache.hadoop.eclipse.perspective.right",
          IPageLayout.RIGHT, 0.8f, layout.getEditorArea());
  right.addView(IPageLayout.ID_OUTLINE);
  right.addView("org.eclipse.ui.cheatsheets.views.CheatSheetView");
  // right.addView(layout.ID); .. cheat sheet here

  layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
  layout.addActionSet(JavaUI.ID_ACTION_SET);
  layout.addActionSet(JavaUI.ID_CODING_ACTION_SET);
  layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET);
  layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
  layout.addActionSet(JavaUI.ID_SEARCH_ACTION_SET);

  layout
      .addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewPackageCreationWizard");
  layout
      .addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewClassCreationWizard");
  layout
      .addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard");
  layout
      .addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewEnumCreationWizard");
  layout
      .addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewAnnotationCreationWizard");
  layout
      .addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard");
  layout
      .addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSnippetFileCreationWizard");
  layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");
  layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");
  layout
      .addNewWizardShortcut("org.eclipse.ui.editors.wizards.UntitledTextFileWizard");

  // CheatSheetViewerFactory.createCheatSheetView().setInput("org.apache.hadoop.eclipse.cheatsheet");
}
 
开发者ID:Nextzero,项目名称:hadoop-2.6.0-cdh5.4.3,代码行数:59,代码来源:HadoopPerspectiveFactory.java

示例7: defineActions

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
private void defineActions(IPageLayout layout) {
	layout.addPerspectiveShortcut(IYakinduSctPerspectives.ID_PERSPECTIVE_SCT_SIMULATION);
	layout.addActionSet("org.eclipse.debug.ui.launchActionSet");
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:5,代码来源:ModelingPerspectiveFactory.java

示例8: defineActions

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
private void defineActions(IPageLayout layout) {
	layout.addPerspectiveShortcut(IYakinduSctPerspectives.ID_PERSPECTIVE_SCT_MODELING);
	layout.addActionSet("org.eclipse.debug.ui.launchActionSet");
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:5,代码来源:SimulationPerspectiveFactory.java

示例9: addActionSets

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
protected void addActionSets(IPageLayout layout) {
  layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
  layout.addActionSet("com.juliacomputing.jldt.eclipse.actionSet"); //$NON-NLS-1$
  layout.addActionSet("org.eclipse.debug.ui.launchActionSet"); //$NON-NLS-1$
}
 
开发者ID:JuliaComputing,项目名称:JuliaDT,代码行数:6,代码来源:JuliaPerspective.java

示例10: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
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);

}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:71,代码来源:JavaPerspectiveFactory.java

示例11: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
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);

}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:58,代码来源:JavaBrowsingPerspectiveFactory.java

示例12: createInitialLayout

import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
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);

}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:62,代码来源:JavaHierarchyPerspectiveFactory.java


注:本文中的org.eclipse.ui.IPageLayout.addActionSet方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。