本文整理汇总了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$
}
示例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");
}
示例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);
}
示例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 );
}
示例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);
}
示例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);
}
示例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);
}
示例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$
}
示例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);
}
示例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 );
}
示例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);
}
}
示例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;
}
示例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;
}
示例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);
}