Author: akazakov
Date: 2011-12-22 15:05:38 -0500 (Thu, 22 Dec 2011)
New Revision: 37537
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/plugin.xml
trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JBossPerspectiveFactory.java
Log:
https://issues.jboss.org/browse/JBIDE-10394 JBoss Perspective: Add Package Explorer
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/plugin.xml
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/plugin.xml 2011-12-22 20:04:33 UTC (rev
37536)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/plugin.xml 2011-12-22 20:05:38 UTC (rev
37537)
@@ -382,12 +382,12 @@
<newWizardShortcut
id="org.jboss.tools.cdi.ui.wizard.NewDecoratorCreationWizard">
</newWizardShortcut>
- <newWizardShortcut
+ <!--newWizardShortcut
id="org.jboss.tools.cdi.ui.wizard.NewAnnotationLiteralCreationWizard">
</newWizardShortcut>
<newWizardShortcut
id="org.jboss.tools.cdi.ui.wizard.NewBeansXMLCreationWizard">
- </newWizardShortcut>
+ </newWizardShortcut-->
</perspectiveExtension>
<perspectiveExtension
Modified: trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml 2011-12-22 20:04:33 UTC (rev
37536)
+++ trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml 2011-12-22 20:05:38 UTC (rev
37537)
@@ -54,10 +54,24 @@
id="org.jboss.tools.common.ui.JBossPerspective"
name="%perspective.name">
</perspective>
+ <extension
+ point="org.eclipse.ui.perspectiveExtensions">
+ <perspectiveExtension
+ targetID="org.jboss.tools.common.ui.JBossPerspective">
+ <perspectiveShortcut
+ id="org.eclipse.jdt.ui.JavaPerspective">
+ </perspectiveShortcut>
+ <perspectiveShortcut
+ id="org.eclipse.jdt.ui.JavaBrowsingPerspective">
+ </perspectiveShortcut>
+ <perspectiveShortcut
+ id="org.eclipse.debug.ui.DebugPerspective">
+ </perspectiveShortcut>
+ </perspectiveExtension>
</extension>
+ </extension>
<extension point="org.eclipse.ui.ide.markerResolution">
<markerResolutionGenerator
class="org.jboss.tools.common.ui.marker.ConfigureProblemSeverityResolutionGenerator"/>
- </extension>
-
+ </extension>
</plugin>
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JBossPerspectiveFactory.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JBossPerspectiveFactory.java 2011-12-22
20:04:33 UTC (rev 37536)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/JBossPerspectiveFactory.java 2011-12-22
20:05:38 UTC (rev 37537)
@@ -39,6 +39,7 @@
public void createInitialLayout(IPageLayout layout) {
layout.addActionSet("org.eclipse.jst.j2ee.J2eeMainActionSet"); //$NON-NLS-1$
layout.addActionSet(JavaUI.ID_ACTION_SET);
+ layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET);
layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
layout.addActionSet(IDebugUIConstants.DEBUG_ACTION_SET);
@@ -46,6 +47,9 @@
layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
layout.addShowViewShortcut(ProjectExplorer.VIEW_ID);
+ layout.addShowViewShortcut(JavaUI.ID_PACKAGES);
+ layout.addShowViewShortcut(JavaUI.ID_TYPE_HIERARCHY);
+ layout.addShowViewShortcut(JavaUI.ID_SOURCE_VIEW);
layout.addShowViewShortcut(ID_SERVERS_VIEW);
layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS);
layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
@@ -53,6 +57,7 @@
layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
+
// views - search
layout.addShowViewShortcut(ID_SEARCH_VIEW);
// views - debugging
@@ -65,6 +70,7 @@
// Top left.
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT,
0.25f, editorArea);//$NON-NLS-1$
topLeft.addView(ProjectExplorer.VIEW_ID);
+ topLeft.addView(JavaUI.ID_PACKAGES);
topLeft.addPlaceholder(IPageLayout.ID_RES_NAV);
topLeft.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY);
topLeft.addPlaceholder(JavaUI.ID_PACKAGES_VIEW);
@@ -88,5 +94,14 @@
// to make placeholder working it should be removed first
((PageLayout)layout).removePlaceholder(ICheatSheetResource.CHEAT_SHEET_VIEW_ID);
topRight.addPlaceholder(ICheatSheetResource.CHEAT_SHEET_VIEW_ID);
+
+ // new actions - Java project creation wizard
+ 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.NewSourceFolderCreationWizard");
//$NON-NLS-1$
+ layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSnippetFileCreationWizard");
//$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$
}
}
\ No newline at end of file