當前位置: 首頁>>代碼示例>>Java>>正文


Java IPageLayout.addShowViewShortcut方法代碼示例

本文整理匯總了Java中org.eclipse.ui.IPageLayout.addShowViewShortcut方法的典型用法代碼示例。如果您正苦於以下問題:Java IPageLayout.addShowViewShortcut方法的具體用法?Java IPageLayout.addShowViewShortcut怎麽用?Java IPageLayout.addShowViewShortcut使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.ui.IPageLayout的用法示例。


在下文中一共展示了IPageLayout.addShowViewShortcut方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: defineActions

import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
/**
 * 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$
}
 
開發者ID:subclipse,項目名稱:subclipse,代碼行數:24,代碼來源:SVNPerspective.java

示例2: defineActions

import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
private void defineActions(IPageLayout layout) {
	// Add File New Item
	layout.addNewWizardShortcut("org.dice.rcp.wizard.project.generic");
	layout.addNewWizardShortcut("org.dice.rcp.wizard.project.qualitytesting");
	layout.addNewWizardShortcut("org.eclipse.papyrus.uml.diagram.wizards.createproject");
	layout.addNewWizardShortcut("org.eclipse.papyrus.uml.diagram.wizards.createmodel");

	// Add "show views".
	layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
	layout.addShowViewShortcut("org.eclipse.papyrus.views.modelexplorer.modelexplorer");
	layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
	layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
	layout.addShowViewShortcut("org.eclipse.ui.console.ConsoleView");
	layout.addShowViewShortcut("org.tigris.subversion.subclipse.ui.repository.RepositoriesView");
	layout.addShowViewShortcut("org.eclipse.egit.ui.RepositoriesView");
	layout.addShowViewShortcut("es.unizar.disco.simulation.ui.views.InvocationsView");
	layout.addShowViewShortcut("DICE-Configuration-IDE-View");
	layout.addShowViewShortcut("org.eclipse.ui.cheatsheets.views.CheatSheetView");

	// Add Perspectives
	layout.addPerspectiveShortcut(ID);
	layout.addPerspectiveShortcut("org.eclipse.papyrus.infra.core.perspective");
	layout.addPerspectiveShortcut("org.eclipse.jdt.ui.JavaPerspective");
}
 
開發者ID:dice-project,項目名稱:DICE-Platform,代碼行數:25,代碼來源:DicePerspective.java

示例3: 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

示例4: defineActions

import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
/**
 * 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 );
}
 
開發者ID:eclipse,項目名稱:birt,代碼行數:16,代碼來源:ReportRCPPerspective.java

示例5: setContentsOfShowViewMenu

import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
/**
 * Sets the initial contents of the "Show View" menu.
 */
protected void setContentsOfShowViewMenu(IPageLayout layout) {
	layout.addShowViewShortcut(ID_RESULT_VIEW);
	layout.addShowViewShortcut(ID_UNIT_VIEW);
	layout.addShowViewShortcut(IDebugUIConstants.ID_DEBUG_VIEW);
	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(ID_CONSOLE_VIEW);
	layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
}
 
開發者ID:VisuFlow,項目名稱:visuflow-plugin,代碼行數:16,代碼來源:VisuflowEditorPerspective.java

示例6: defineActions

import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
/**
 * Defines the initial actions for a page.
 *
 * @param layout
 *        The layout we are filling
 */
public void defineActions(final IPageLayout layout) {
    // Add "show views".
    layout.addShowViewShortcut(TeamExplorerView.ID);
    layout.addShowViewShortcut(TeamExplorerHelpers.PendingChangesViewID);
    layout.addShowViewShortcut(TeamExplorerHelpers.BuildsViewID);
}
 
開發者ID:Microsoft,項目名稱:team-explorer-everywhere,代碼行數:13,代碼來源:TFSPerspective.java

示例7: createInitialLayout

import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
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);
}
 
開發者ID:eclipse,項目名稱:texlipse,代碼行數:38,代碼來源:TexPerspectiveFactory.java

示例8: defineActions

import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
/**
 * Define actions.
 *
 * @param layout the layout
 */
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(TracePerspective.ID);
}
 
開發者ID:germanattanasio,項目名稱:traceability-assistant-eclipse-plugins,代碼行數:17,代碼來源:TracePerspective.java

示例9: addShowViewShortcuts

import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
protected void addShowViewShortcuts(IPageLayout layout) {
  layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
  layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
  layout.addShowViewShortcut(DLTKUIPlugin.ID_SCRIPT_EXPLORER);
  layout.addShowViewShortcut("org.eclipse.dltk.testing.ResultView"); //$NON-NLS-1$
  layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
  layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID);
  layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
  layout.addShowViewShortcut("org.eclipse.dltk.ui.TypeHierarchy"); //$NON-NLS-1$
  layout.addShowViewShortcut("org.eclipse.dltk.callhierarchy.view"); //$NON-NLS-1$
}
 
開發者ID:JuliaComputing,項目名稱:JuliaDT,代碼行數:12,代碼來源:JuliaPerspective.java

示例10: createInitialLayout

import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
@Override
public void createInitialLayout(final IPageLayout layout)
{
    final String editor = layout.getEditorArea();

    // Folders that surround the central area
    final IFolderLayout left = layout.createFolder("LEFT", IPageLayout.LEFT, 0.15f, editor);
    final IFolderLayout right = layout.createFolder("RIGHT", IPageLayout.RIGHT, 0.7f, editor);
    final IFolderLayout bottom = layout.createFolder("BOTTOM", IPageLayout.BOTTOM, 0.8f, editor);
    final IFolderLayout left_bottom = layout.createFolder("LEFT_BOTTOM", IPageLayout.BOTTOM, 0.8f, "LEFT");

    // Stuff for 'left'
    left.addView(RuntimePerspective.ID_NAVIGATOR);
    left_bottom.addView(IPageLayout.ID_OUTLINE);

    // Stuff for 'right'
    right.addView(IPageLayout.ID_PROP_SHEET);

    //Stuff for 'bottom'
    bottom.addPlaceholder(RuntimePerspective.ID_CONSOLE_VIEW);
    bottom.addPlaceholder(IPageLayout.ID_PROGRESS_VIEW);

    // Populate menu entries for "New", "Window/Views..." etc.
    layout.addNewWizardShortcut(RuntimePerspective.NEW_FOLDER_WIZARD_ID);
    layout.addNewWizardShortcut(NewDisplayWizard.ID);

    layout.addPerspectiveShortcut(RuntimePerspective.ID);

    layout.addShowViewShortcut(RuntimePerspective.ID_NAVIGATOR);
    layout.addShowViewShortcut(RuntimePerspective.ID_CONSOLE_VIEW);
    layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
    layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
    layout.addShowViewShortcut(ID_HELP_VIEW);
}
 
開發者ID:kasemir,項目名稱:org.csstudio.display.builder,代碼行數:35,代碼來源:EditorPerspective.java

示例11: createInitialLayout

import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
/**
 * Setup the default perspective's view positions.
 */
/* Override */
public void createInitialLayout( IPageLayout layout )
{
   layout.addShowViewShortcut( Ids.ZXTM_VIEW );
   layout.addShowViewShortcut( IPageLayout.ID_PROBLEM_VIEW );
   layout.addShowViewShortcut( IPageLayout.ID_TASK_LIST );
   layout.addShowViewShortcut( IPageLayout.ID_RES_NAV );
   
   layout.addNewWizardShortcut( Ids.NEW_ZXTM_WIZARD );
   layout.addNewWizardShortcut( Ids.NEW_RULE_WIZARD );
   
   layout.addPerspectiveShortcut( Ids.PERSPECTIVE );
         
   String editorArea = layout.getEditorArea();
   
   IFolderLayout left = layout.createFolder( "left", IPageLayout.LEFT, 0.26f, editorArea );
   IFolderLayout bottom = layout.createFolder( "bottom", IPageLayout.BOTTOM, 0.74f, editorArea );
   
   left.addView( Ids.ZXTM_VIEW ); 
   left.addView( IPageLayout.ID_RES_NAV ); 
   
   layout.addPlaceholder( IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.8f, editorArea );
   
   bottom.addView( IPageLayout.ID_PROBLEM_VIEW );
   bottom.addView( IPageLayout.ID_TASK_LIST );
   bottom.addPlaceholder( IPageLayout.ID_PROGRESS_VIEW );
   bottom.addPlaceholder( IPageLayout.ID_BOOKMARKS );
   bottom.addPlaceholder( IPageLayout.ID_PROP_SHEET );
}
 
開發者ID:brocade,項目名稱:vTM-eclipse,代碼行數:33,代碼來源:ZXTMPerspective.java

示例12: addShowViewShortcut

import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
/**
 * Add the view with the given class name to the "Show View" menu. 
 * @param layout
 * @param name
 */
protected void addShowViewShortcut(IPageLayout layout, String name) {
	String constraintsViewId = getViewIdFromClassName(name);
	if (constraintsViewId != null) {
		layout.addShowViewShortcut(constraintsViewId);
	}
}
 
開發者ID:nasa,項目名稱:OpenSPIFe,代碼行數:12,代碼來源:BasicPerspectiveFactory.java

示例13: addViewByTarget

import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
protected String addViewByTarget(IPageLayout layout, String name, String target, int relationship, float ratio) {
	String viewId = getViewIdFromClassName(name);
	if (viewId != null) {
		layout.addShowViewShortcut(viewId);
		layout.addView(viewId, relationship, ratio, target);
	}
	return viewId;
}
 
開發者ID:nasa,項目名稱:OpenSPIFe,代碼行數:9,代碼來源:BasicPerspectiveFactory.java

示例14: addViewPlaceholderByTarget

import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
protected String addViewPlaceholderByTarget(IPageLayout layout, String name, String target, int relationship, float ratio) {
	String viewId = getViewIdFromClassName(name);
	if (viewId != null) {
		layout.addShowViewShortcut(viewId);
		layout.addPlaceholder(viewId, relationship, ratio, target);
	}
	return viewId;
}
 
開發者ID:nasa,項目名稱:OpenSPIFe,代碼行數:9,代碼來源:BasicPerspectiveFactory.java

示例15: setViewShortcuts

import org.eclipse.ui.IPageLayout; //導入方法依賴的package包/類
/**
 * Adds views to the "Window -> Show View" menu to be displayed when the JIVE perspective is the
 * current perspective.
 * 
 * @param layout
 *          the layout for the JIVE perspective
 */
protected void setViewShortcuts(final IPageLayout layout)
{
  layout.addShowViewShortcut(JiveUIPlugin.ID_TRACE_VIEW);
  layout.addShowViewShortcut(JiveUIPlugin.ID_CONTOUR_DIAGRAM_VIEW);
  layout.addShowViewShortcut(JiveUIPlugin.ID_CONTOUR_MODEL_VIEW);
  layout.addShowViewShortcut(JiveUIPlugin.ID_SEQUENCE_DIAGRAM_VIEW);
  layout.addShowViewShortcut(JiveUIPlugin.ID_SEQUENCE_MODEL_VIEW);
  layout.addShowViewShortcut(NewSearchUI.SEARCH_VIEW_ID);
}
 
開發者ID:UBPL,項目名稱:jive,代碼行數:17,代碼來源:JivePerspectiveFactory.java


注:本文中的org.eclipse.ui.IPageLayout.addShowViewShortcut方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。