Author: bbrodt
Date: 2010-08-09 09:44:24 -0400 (Mon, 09 Aug 2010)
New Revision: 23998
Added:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/perspectives/
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/perspectives/BPELPerspectiveFactory.java
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/META-INF/MANIFEST.MF
trunk/bpel/plugins/org.eclipse.bpel.ui/plugin.xml
Log:
https://jira.jboss.org/browse/JBIDE-6736
First cut
Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/bpel/plugins/org.eclipse.bpel.ui/META-INF/MANIFEST.MF 2010-08-09 13:12:10 UTC
(rev 23997)
+++ trunk/bpel/plugins/org.eclipse.bpel.ui/META-INF/MANIFEST.MF 2010-08-09 13:44:24 UTC
(rev 23998)
@@ -27,7 +27,8 @@
javax.wsdl;bundle-version="[1.5.0,1.6.0)",
org.eclipse.wst.xsd.ui,
org.eclipse.wst.wsdl.ui,
- org.eclipse.wst.xml.ui
+ org.eclipse.wst.xml.ui,
+ org.eclipse.ui.console;bundle-version="3.5.0"
Bundle-ActivationPolicy: lazy
Export-Package: org.eclipse.bpel.ui,
org.eclipse.bpel.ui.actions,
Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/plugin.xml
===================================================================
--- trunk/bpel/plugins/org.eclipse.bpel.ui/plugin.xml 2010-08-09 13:12:10 UTC (rev 23997)
+++ trunk/bpel/plugins/org.eclipse.bpel.ui/plugin.xml 2010-08-09 13:44:24 UTC (rev 23998)
@@ -686,4 +686,13 @@
</enablement>
</decorator>
</extension>
+ <extension
+ point="org.eclipse.ui.perspectives">
+ <perspective
+ class="org.eclipse.bpel.ui.perspectives.BPELPerspectiveFactory"
+ icon="icons/obj20/bpel.png"
+ id="org.eclipse.bpel.ui.perspective"
+ name="BPEL Perspective">
+ </perspective>
+ </extension>
</plugin>
Added:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/perspectives/BPELPerspectiveFactory.java
===================================================================
---
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/perspectives/BPELPerspectiveFactory.java
(rev 0)
+++
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/perspectives/BPELPerspectiveFactory.java 2010-08-09
13:44:24 UTC (rev 23998)
@@ -0,0 +1,65 @@
+package org.eclipse.bpel.ui.perspectives;
+
+import org.eclipse.ui.IPerspectiveFactory;
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IFolderLayout;
+import org.eclipse.ui.console.IConsoleConstants;
+import org.eclipse.gef.ui.palette.PaletteViewer;
+
+public class BPELPerspectiveFactory implements IPerspectiveFactory {
+
+ private static final String
ID_NEW_BPEL_PROJECT_WIZARD="org.jboss.tools.bpel.runtimes.wizards.newBPELProject";
+ private static final String
ID_NEW_BPEL_FILE_WIZARD="org.eclipse.bpel.ui.newFile";
+ private static final String
ID_NEW_BPEL_DEPLOY_WIZARD="org.eclipse.bpel.apache.ode.deploy.ui.wizards.NewODEDeployWizard";
+ private static final String
ID_PALETTE_VIEW="org.eclipse.gef.ui.palette_view";
+ private static final String
ID_SERVERS_VIEW="org.eclipse.wst.server.ui.ServersView";
+ private static final String
ID_SERVERS_ACTION_SET="org.jboss.tools.jst.web.ui.server.actionSet";
+
+
+ private static final String BOTTOM = "bottom";
+
+ public void createInitialLayout(IPageLayout layout) {
+
+ String editorArea = layout.getEditorArea();
+
+ // New wizards
+ layout.addNewWizardShortcut(ID_NEW_BPEL_PROJECT_WIZARD);
+ layout.addNewWizardShortcut(ID_NEW_BPEL_FILE_WIZARD);
+ layout.addNewWizardShortcut(ID_NEW_BPEL_DEPLOY_WIZARD);
+
+ // view shortcuts
+ layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
+ layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
+ layout.addShowViewShortcut(ID_PALETTE_VIEW);
+ layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
+ layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
+ layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
+ layout.addShowViewShortcut(ID_SERVERS_VIEW);
+
+ // views
+ IFolderLayout leftTop = layout.createFolder("leftTop", IPageLayout.LEFT,
0.2f, editorArea); //$NON-NLS-1$
+ leftTop.addView(IPageLayout.ID_PROJECT_EXPLORER);
+ leftTop.addPlaceholder(IPageLayout.ID_RES_NAV);
+
+ IFolderLayout leftBottom = layout.createFolder("leftBottom",
IPageLayout.BOTTOM, 0.7f, "leftTop"); //$NON-NLS-1$ //$NON-NLS-2$
+ leftBottom.addView(ID_SERVERS_VIEW);
+
+ IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM,
0.7f, editorArea); //$NON-NLS-1$
+ bottom.addView(IPageLayout.ID_PROP_SHEET);
+ bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
+ bottom.addView(IPageLayout.ID_TASK_LIST);
+ bottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
+
+ IFolderLayout rightTop = layout.createFolder("rightTop", IPageLayout.RIGHT,
0.8f, editorArea); //$NON-NLS-1$
+ rightTop.addView(IPageLayout.ID_OUTLINE);
+
+ IFolderLayout rightBottom = layout.createFolder("rightBottom",
IPageLayout.BOTTOM, 0.4f, "rightTop"); //$NON-NLS-1$ //$NON-NLS-2$
+ rightBottom.addView(ID_PALETTE_VIEW);
+
+ // action sets
+ layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
+ layout.addActionSet(ID_SERVERS_ACTION_SET);
+
+
+ }
+}