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