]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - ide/plugins/org.argeo.slc.ide.ui/src/main/java/org/argeo/slc/ide/ui/SlcPerspectiveFactory.java
Move to ide
[gpl/argeo-slc.git] / ide / plugins / org.argeo.slc.ide.ui / src / main / java / org / argeo / slc / ide / ui / SlcPerspectiveFactory.java
diff --git a/ide/plugins/org.argeo.slc.ide.ui/src/main/java/org/argeo/slc/ide/ui/SlcPerspectiveFactory.java b/ide/plugins/org.argeo.slc.ide.ui/src/main/java/org/argeo/slc/ide/ui/SlcPerspectiveFactory.java
new file mode 100644 (file)
index 0000000..7c0084e
--- /dev/null
@@ -0,0 +1,27 @@
+package org.argeo.slc.ide.ui;\r
+\r
+import org.eclipse.jdt.ui.JavaUI;\r
+import org.eclipse.ui.IFolderLayout;\r
+import org.eclipse.ui.IPageLayout;\r
+import org.eclipse.ui.IPerspectiveFactory;\r
+import org.eclipse.ui.console.IConsoleConstants;\r
+\r
+public class SlcPerspectiveFactory implements IPerspectiveFactory {\r
+\r
+       public void createInitialLayout(IPageLayout layout) {\r
+               // Get the editor area.\r
+               String editorArea = layout.getEditorArea();\r
+\r
+               IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.25f,\r
+                       editorArea);\r
+               topLeft.addView(JavaUI.ID_PACKAGES);\r
+\r
+               IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.66f,\r
+                               editorArea);\r
+               bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);\r
+               bottom.addView(IPageLayout.ID_TASK_LIST);\r
+               \r
+               layout.addActionSet("org.eclipse.debug.ui.launchActionSet");\r
+       }\r
+\r
+}\r