]> 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
5374dd17f11d67b6c1f28fb42c7259261843d424
[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(true);
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, editorArea);
27 bottom.addView("org.argeo.slc.client.ui.processListView");
28
29 // IFolderLayout topRight = layout.createFolder("topRight",
30 // IPageLayout.RIGHT, 0.6f, "main");
31
32 // add the views to the corresponding place holder
33 left.addView("org.argeo.slc.client.ui.jcrExecutionModulesView");
34 left.addView("org.argeo.slc.client.ui.resultListView");
35
36 // main.addView("org.argeo.slc.client.ui.processBuilderView");
37 // main.addPlaceholder("org.argeo.slc.client.ui.resultDetailView:UUID-*");
38 // main.addPlaceholder("org.argeo.slc.client.ui.processDetailView:UUID-*");
39
40
41 // topRight.addView("org.argeo.slc.client.ui.processParametersView");
42 }
43
44 }