+ refactoring of the JCR UI Model (in a MVC point of view)
[lgpl/argeo-commons.git] / sandbox / eclipse / plugins / org.argeo.sandbox.ui.rap / src / main / java / org / argeo / sandbox / ui / rap / Perspective.java
diff --git a/sandbox/eclipse/plugins/org.argeo.sandbox.ui.rap/src/main/java/org/argeo/sandbox/ui/rap/Perspective.java b/sandbox/eclipse/plugins/org.argeo.sandbox.ui.rap/src/main/java/org/argeo/sandbox/ui/rap/Perspective.java
new file mode 100644 (file)
index 0000000..dbc9560
--- /dev/null
@@ -0,0 +1,28 @@
+package org.argeo.sandbox.ui.rap;
+
+import org.argeo.sandbox.ui.rap.views.TestDownloadView;
+import org.eclipse.ui.IFolderLayout;
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IPerspectiveFactory;
+
+/**
+ * Configures the perspective layout. This class is contributed through the
+ * plugin.xml.
+ */
+public class Perspective implements IPerspectiveFactory {
+
+       public final static String ID = "org.argeo.sandbox.ui.downloadTries";
+
+       public void createInitialLayout(IPageLayout layout) {
+               String editorArea = layout.getEditorArea();
+               layout.setEditorAreaVisible(true);
+               layout.setFixed(false);
+
+               // Create the main ui layout
+               IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
+                               0.4f, editorArea);
+
+               // add the views to the corresponding place holder
+               left.addView(TestDownloadView.ID);
+       }
+}