]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - eclipse/plugins/org.argeo.slc.client.rcp/src/org/argeo/slc/client/rcp/Perspective.java
Introduce SLC RCP
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.rcp / src / org / argeo / slc / client / rcp / Perspective.java
diff --git a/eclipse/plugins/org.argeo.slc.client.rcp/src/org/argeo/slc/client/rcp/Perspective.java b/eclipse/plugins/org.argeo.slc.client.rcp/src/org/argeo/slc/client/rcp/Perspective.java
new file mode 100644 (file)
index 0000000..8ada2a0
--- /dev/null
@@ -0,0 +1,18 @@
+package org.argeo.slc.client.rcp;
+
+import org.argeo.slc.client.ui.views.ExecutionModulesView;
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IPerspectiveFactory;
+
+public class Perspective implements IPerspectiveFactory {
+
+       public void createInitialLayout(IPageLayout layout) {
+               String editorArea = layout.getEditorArea();
+               layout.setEditorAreaVisible(false);
+               layout.setFixed(true);
+
+               layout.addStandaloneView(ExecutionModulesView.ID, false,
+                               IPageLayout.LEFT, 1.0f, editorArea);
+       }
+
+}