]> git.argeo.org Git - gpl/argeo-slc.git/blob - plugins/org.argeo.slc.akb.ui/src/main/java/org/argeo/slc/akb/ui/AkbTemplatesPerspective.java
Base tree structure and first draft for the AKB App.
[gpl/argeo-slc.git] / plugins / org.argeo.slc.akb.ui / src / main / java / org / argeo / slc / akb / ui / AkbTemplatesPerspective.java
1 package org.argeo.slc.akb.ui;
2
3 import org.argeo.slc.akb.ui.views.AkbDefaultView;
4 import org.eclipse.ui.IFolderLayout;
5 import org.eclipse.ui.IPageLayout;
6 import org.eclipse.ui.IPerspectiveFactory;
7
8 public class AkbTemplatesPerspective implements IPerspectiveFactory {
9 public static final String ID = AkbUiPlugin.PLUGIN_ID + ".akbTemplatesPerspective";
10
11 @Override
12 public void createInitialLayout(IPageLayout layout) {
13 String editorArea = layout.getEditorArea();
14 layout.setEditorAreaVisible(true);
15 layout.setFixed(false);
16
17 IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
18 0.3f, editorArea);
19 left.addView(AkbDefaultView.ID);
20 }
21 }