]> git.argeo.org Git - lgpl/argeo-commons.git/blob - rap/Perspective.java
Prepare next development cycle
[lgpl/argeo-commons.git] / rap / Perspective.java
1 package org.argeo.sandbox.ui.rap;
2
3 import org.argeo.sandbox.ui.rap.views.TestDownloadView;
4 import org.eclipse.ui.IFolderLayout;
5 import org.eclipse.ui.IPageLayout;
6 import org.eclipse.ui.IPerspectiveFactory;
7
8 /**
9 * Configures the perspective layout. This class is contributed through the
10 * plugin.xml.
11 */
12 public class Perspective implements IPerspectiveFactory {
13
14 public final static String ID = "org.argeo.sandbox.ui.downloadTries";
15
16 public void createInitialLayout(IPageLayout layout) {
17 String editorArea = layout.getEditorArea();
18 layout.setEditorAreaVisible(true);
19 layout.setFixed(false);
20
21 // Create the main ui layout
22 IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
23 0.4f, editorArea);
24
25 // add the views to the corresponding place holder
26 left.addView(TestDownloadView.ID);
27 }
28 }