]> git.argeo.org Git - gpl/argeo-slc.git/blob - workbench/MaintenancePerspective.java
Prepare next development cycle
[gpl/argeo-slc.git] / workbench / MaintenancePerspective.java
1 package org.argeo.cms.ui.workbench;
2
3 import org.argeo.cms.ui.workbench.useradmin.AdminLogView;
4 import org.argeo.cms.ui.workbench.useradmin.UserProfile;
5 import org.eclipse.ui.IFolderLayout;
6 import org.eclipse.ui.IPageLayout;
7 import org.eclipse.ui.IPerspectiveFactory;
8
9 /** First draft of a maintenance perspective. Not yet used */
10 public class MaintenancePerspective implements IPerspectiveFactory {
11 public final static String ID = WorkbenchUiPlugin.PLUGIN_ID
12 + ".adminMaintenancePerspective";
13
14 public void createInitialLayout(IPageLayout layout) {
15 String editorArea = layout.getEditorArea();
16 layout.setEditorAreaVisible(true);
17 layout.setFixed(false);
18
19 IFolderLayout bottom = layout.createFolder("bottom",
20 IPageLayout.BOTTOM, 0.50f, editorArea);
21 bottom.addView(AdminLogView.ID);
22
23 IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
24 0.30f, editorArea);
25 left.addView(UserProfile.ID);
26 }
27 }