]> git.argeo.org Git - gpl/argeo-slc.git/blob - Perspective.java
c5b83678429aa9e9bcd49d75f96776b681ca0fbb
[gpl/argeo-slc.git] / Perspective.java
1 package org.argeo.slc.client.rcp;
2
3 import org.eclipse.ui.IFolderLayout;
4 import org.eclipse.ui.IPageLayout;
5 import org.eclipse.ui.IPerspectiveFactory;
6
7 public class Perspective implements IPerspectiveFactory {
8
9 public void createInitialLayout(IPageLayout layout) {
10 String editorArea = layout.getEditorArea();
11 layout.setEditorAreaVisible(false);
12 layout.setFixed(true);
13
14 IFolderLayout topLeft = layout.createFolder("topLeft",
15 IPageLayout.LEFT, 0.5f, editorArea);
16 topLeft.addView("org.argeo.slc.client.ui.executionModulesView");
17
18 IFolderLayout topRight = layout.createFolder("topRight",
19 IPageLayout.RIGHT, 0.5f, editorArea);
20 topRight.addView("org.argeo.slc.client.ui.resultListView");
21
22 IFolderLayout bottomRight = layout.createFolder("bottomRight",
23 IPageLayout.BOTTOM, 0.6f, "topRight");
24 bottomRight.addView("org.argeo.slc.client.ui.processListView");
25
26 IFolderLayout bottomLeft = layout.createFolder("bottomLeft",
27 IPageLayout.BOTTOM, 0.6f, "topLeft");
28 bottomLeft.addView("org.argeo.slc.client.ui.processBuilderView");
29 }
30
31 }