本文整理汇总了Java中org.eclipse.ui.IPageLayout.addNewWizardShortcut方法的典型用法代码示例。如果您正苦于以下问题:Java IPageLayout.addNewWizardShortcut方法的具体用法?Java IPageLayout.addNewWizardShortcut怎么用?Java IPageLayout.addNewWizardShortcut使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.ui.IPageLayout
的用法示例。
在下文中一共展示了IPageLayout.addNewWizardShortcut方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@SuppressWarnings ( "deprecation" )
@Override
public void createInitialLayout ( final IPageLayout factory )
{
final IFolderLayout topLeft = factory.createFolder ( "topLeft", IPageLayout.LEFT, 0.25f, factory.getEditorArea () );
topLeft.addPlaceholder ( IPageLayout.ID_RES_NAV );
topLeft.addView ( JavaUI.ID_PACKAGES );
topLeft.addPlaceholder ( JavaUI.ID_TYPE_HIERARCHY );
topLeft.addView ( "org.eclipse.scada.core.ui.connection.ConnectionView" ); //$NON-NLS-1$
final IFolderLayout bottom = factory.createFolder ( "bottomRight", IPageLayout.BOTTOM, 0.75f, factory.getEditorArea () );
bottom.addView ( "org.eclipse.pde.runtime.LogView" ); //$NON-NLS-1$
bottom.addView ( IPageLayout.ID_TASK_LIST );
bottom.addView ( IPageLayout.ID_PROBLEM_VIEW );
factory.addView ( IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.75f, factory.getEditorArea () );
factory.addNewWizardShortcut ( "org.eclipse.pde.ui.NewProjectWizard" ); //$NON-NLS-1$
factory.addNewWizardShortcut ( "org.eclipse.pde.ui.NewFeatureProjectWizard" ); //$NON-NLS-1$
}
示例2: 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$
}
示例3: 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");
}
示例4: 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);
}
示例5: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
public void createInitialLayout(IPageLayout factory) {
setupPrefs();
factory.setEditorAreaVisible(true);
factory.setFixed(false);
// factory.addStandaloneView("org.eclipse.jdt.ui.PackageExplorer", false, IPageLayout.LEFT, 0.15f, factory.getEditorArea());
factory.addView("org.eclipse.jdt.ui.PackageExplorer", IPageLayout.LEFT, 0.15f, factory.getEditorArea());
factory.addView("pt.iscte.pandionj.view", IPageLayout.RIGHT, 0.5f, factory.getEditorArea());
// factory.addStandaloneView(IConsoleConstants.ID_CONSOLE_VIEW, false, IPageLayout.BOTTOM, 0.8f, "pt.iscte.pandionj.view");
factory.addView(IConsoleConstants.ID_CONSOLE_VIEW, IPageLayout.BOTTOM, 0.8f, "pt.iscte.pandionj.view");
factory.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.JavaProjectWizard");
factory.addNewWizardShortcut("pt.iscte.perspective.wizards.NewPackageWizard");
factory.addNewWizardShortcut("pt.iscte.perspective.wizards.NewFileWizard");
}
示例6: 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");
}
示例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: addNewWizardShortcuts
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
protected void addNewWizardShortcuts(IPageLayout layout) {
layout.addNewWizardShortcut(JuliaNewProjectWizard.ID);
layout.addNewWizardShortcut(JuliaNewFileWizard.ID);
// General
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$
}
示例9: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {
// Define shortcuts for DepAn perspective
// TODO: layout.addShowViewShortcut(Tools.VIEW_ID);
layout.addNewWizardShortcut(NewDepanProjectWizard.WIZARD_ID);
// Define screen regions for DepAn perspective
IFolderLayout folder = layout.createFolder("views",
IPageLayout.RIGHT, 0.7F, layout.getEditorArea());
folder.addView(IPageLayout.ID_RES_NAV);
// TODO: folder.addView(Tools.VIEW_ID);
}
示例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: 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");
}
示例13: addNewWizardShortcut
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
private void addNewWizardShortcut( IPageLayout layout, String id )
{
if ( extra == null || !extra.obsoleteNewWizardShortcut( id ) )
{
layout.addNewWizardShortcut( id );
}
}
示例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: createInitialLayout
import org.eclipse.ui.IPageLayout; //导入方法依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
IFolderLayout folder= layout.createFolder("left", IPageLayout.LEFT, (float)0.2, editorArea);
folder.addView("jasonide.navigatorView");
folder.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY);
folder.addPlaceholder(IPageLayout.ID_RES_NAV);
folder.addPlaceholder("org.eclipse.ui.navigator.ProjectExplorer");
IFolderLayout outputfolder= layout.createFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea);
outputfolder.addView(IPageLayout.ID_TASK_LIST);
outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW);
outputfolder.addView(JavaUI.ID_SOURCE_VIEW);
outputfolder.addView(JavaUI.ID_JAVADOC_VIEW);
outputfolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);
outputfolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
IFolderLayout outlineFolder = layout.createFolder("right", IPageLayout.RIGHT, (float)0.75, editorArea);
outlineFolder.addView(IPageLayout.ID_OUTLINE);
outlineFolder.addPlaceholder(TemplatesView.ID);
layout.addShowViewShortcut("jasonide.navigatorView");
layout.addShowViewShortcut(JavaUI.ID_SOURCE_VIEW);
layout.addShowViewShortcut(JavaUI.ID_JAVADOC_VIEW);
layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
layout.addNewWizardShortcut("jasonide.newJasonProjectWizard");
layout.addNewWizardShortcut("jasonide.newAgentWizard");
layout.addNewWizardShortcut("jasonide.newArtifactWizard");
layout.addNewWizardShortcut("jasonide.newInternalActionWizard");
layout.addNewWizardShortcut("jasonide.newAslFileWizard");
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.jdt.ui.wizards.NewJavaWorkingSetWizard");
layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");
layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");
layout.addNewWizardShortcut("org.eclipse.ui.editors.wizards.UntitledTextFileWizard");
}