]> git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/SlcExecutionPerspective.java
81547347b89278d24b5b4d714efe1851006f008f
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.ui / src / main / java / org / argeo / slc / client / ui / SlcExecutionPerspective.java
1 package org.argeo.slc.client.ui;
2
3 import org.eclipse.ui.IFolderLayout;
4 import org.eclipse.ui.IPageLayout;
5 import org.eclipse.ui.IPerspectiveFactory;
6
7 public class SlcExecutionPerspective implements IPerspectiveFactory {
8
9 public void createInitialLayout(IPageLayout layout) {
10 String editorArea = layout.getEditorArea();
11 layout.setEditorAreaVisible(false);
12 layout.setFixed(false);
13
14 // Create the main ui layout
15
16 // For a vertical split, the part on top gets the specified ratio of the
17 // current space and the part on bottom gets the rest. Likewise, for a
18 // horizontal split, the part at left gets the specified ratio of the
19 // current space.
20 IFolderLayout main = layout.createFolder("main", IPageLayout.RIGHT,
21 0.3f, editorArea);
22 IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
23 0.3f, editorArea);
24
25 IFolderLayout bottom = layout.createFolder("bottom",
26 IPageLayout.BOTTOM, 0.65f, "main");
27
28 IFolderLayout topRight = layout.createFolder("topRight",
29 IPageLayout.RIGHT, 0.6f, "main");
30
31 // add the views to the corresponding place holder
32 left.addView("org.argeo.slc.client.ui.jcrExecutionModulesView");
33 left.addView("org.argeo.slc.client.ui.resultListView");
34
35 main.addView("org.argeo.slc.client.ui.processBuilderView");
36 main.addPlaceholder("org.argeo.slc.client.ui.resultDetailView:UUID-*");
37 // main.addView("org.argeo.slc.client.ui.resultExcelView");
38 // main.addPlaceholder("org.argeo.slc.client.ui.resultExcelView:UUID-*");
39 main.addPlaceholder("org.argeo.slc.client.ui.processDetailView:UUID-*");
40
41 bottom.addView("org.argeo.slc.client.ui.processListView");
42
43 topRight.addView("org.argeo.slc.client.ui.processParametersView");
44 }
45
46 }