]>
git.argeo.org Git - gpl/argeo-slc.git/blob - SlcExecution.java
acb72db3be4499daa13363e1f921bda135e7739d
1 package org
.argeo
.slc
.client
.ui
.perspectives
;
3 import org
.eclipse
.ui
.IFolderLayout
;
4 import org
.eclipse
.ui
.IPageLayout
;
5 import org
.eclipse
.ui
.IPerspectiveFactory
;
7 public class SlcExecution
implements IPerspectiveFactory
{
9 public void createInitialLayout(IPageLayout layout
) {
10 String editorArea
= layout
.getEditorArea();
11 layout
.setEditorAreaVisible(false);
12 layout
.setFixed(false);
14 // Create the main ui layout
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
20 IFolderLayout main
= layout
.createFolder("main", IPageLayout
.RIGHT
,
22 IFolderLayout left
= layout
.createFolder("left", IPageLayout
.LEFT
,
25 IFolderLayout bottom
= layout
.createFolder("bottom",
26 IPageLayout
.BOTTOM
, 0.65f
, "main");
28 IFolderLayout topRight
= layout
.createFolder("topRight",
29 IPageLayout
.RIGHT
, 0.6f
, "main");
31 // add the views to the corresponding place holder
32 left
.addView("org.argeo.slc.client.ui.executionModulesView");
33 left
.addView("org.argeo.slc.client.ui.resultListView");
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-*");
41 bottom
.addView("org.argeo.slc.client.ui.processListView");
43 topRight
.addView("org.argeo.slc.client.ui.processParametersView");