本文整理汇总了Java中org.eclipse.ui.IPageLayout.addPerspectiveShortcut方法的典型用法代码示例。如果您正苦于以下问题:Java IPageLayout.addPerspectiveShortcut方法的具体用法?Java IPageLayout.addPerspectiveShortcut怎么用?Java IPageLayout.addPerspectiveShortcut使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.ui.IPageLayout
的用法示例。
在下文中一共展示了IPageLayout.addPerspectiveShortcut方法的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: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
/**
* @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(true);
layout.addPerspectiveShortcut(ID_PERSPECTIVE);
IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, (float)0.33, layout.getEditorArea());
left.addView(ModelExplorer.ID);
IFolderLayout bottomLeft = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, (float)0.90, "left");
bottomLeft.addView(CurrentUserView.ID);
IFolderLayout topRight = layout.createFolder("topRight", IPageLayout.RIGHT, (float)0.55, layout.getEditorArea());
topRight.addView(WhiteboardChatView.ID);
IFolderLayout right = layout.createFolder("right", IPageLayout.BOTTOM, (float)0.33, "topRight");
right.addView(ModelLogView.ID);
IFolderLayout bottomRight = layout.createFolder("bottomRight", IPageLayout.BOTTOM, (float)0.60, "right");
bottomRight.addView(IPageLayout.ID_PROP_SHEET);
}
示例4: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
layout.setEditorAreaVisible(false);
IFolderLayout agentLayout = layout.createFolder(IConstants.LAYOUT_WASSERVICE_OBJECT_NAVIGATION, IPageLayout.LEFT, 0.20f, editorArea);
agentLayout.addPlaceholder(ObjectNavigationView.ID + ":*");
agentLayout.addPlaceholder(ObjectDailyListView.ID + ":*");
agentLayout.addPlaceholder(GroupNavigationView.ID);
agentLayout.addView(ObjectNavigationView.ID);
layout.getViewLayout(ObjectNavigationView.ID).setCloseable(false);
IFolderLayout mainLayout = layout.createFolder("perspective.stack.main", IPageLayout.LEFT, 1.0f, editorArea);
mainLayout.addView(StackAnalyzerView.ID);
layout.getViewLayout(StackAnalyzerView.ID).setCloseable(false);
IFolderLayout explorerFolder = layout.createFolder("perspective.stack.explorer", IPageLayout.BOTTOM, 0.5f, IConstants.LAYOUT_WASSERVICE_OBJECT_NAVIGATION);
explorerFolder.addView(WorkspaceExplorer.ID);
layout.addPerspectiveShortcut(getId());
}
示例5: 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 );
}
示例6: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
/**
* @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout) <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(true);
layout.addPerspectiveShortcut(ID_PERSPECTIVE);
IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, (float) 0.66, layout.getEditorArea());
right.addView(IPageLayout.ID_OUTLINE);
IFolderLayout bottonRight = layout.createFolder("bottonRight", IPageLayout.BOTTOM, (float) 0.60, "right");
bottonRight.addView(IPageLayout.ID_PROP_SHEET);
}
示例7: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {
// Add the perspective to the layout
layout.addPerspectiveShortcut(VisualizationPerspective.ID);
return;
}
示例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: 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);
}
示例10: 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 );
}
示例11: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
/**
* Implements IPerspectiveFactory. Automatically adds all registered perspectives to the shortcut bar. This ensures
* that all perspectives will be easily accessible regardless of the perspective that is currently selected.
*/
@Override
public void createInitialLayout(IPageLayout layout) {
for (IPerspectiveDescriptor per : PlatformUI.getWorkbench().getPerspectiveRegistry().getPerspectives()) {
layout.addPerspectiveShortcut(per.getId());
}
}
示例12: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
/**
* @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(true);
layout.addPerspectiveShortcut(ID_PERSPECTIVE);
IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, (float)0.66, layout.getEditorArea());
right.addView(DetailView.ID);
}
示例13: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
/**
* @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(true);
layout.addPerspectiveShortcut(ID_PERSPECTIVE);
IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, (float)0.66, layout.getEditorArea());
right.addView(IPageLayout.ID_OUTLINE);
IFolderLayout bottonRight = layout.createFolder("bottonRight", IPageLayout.BOTTOM, (float)0.60, "right");
bottonRight.addView(IPageLayout.ID_PROP_SHEET);
}
示例14: 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);
}
示例15: 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");
}