1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.argeo.cms.ui.workbench;
17
18 import org.argeo.cms.ui.workbench.useradmin.AdminLogView;
19 import org.argeo.cms.ui.workbench.useradmin.UserProfile;
20 import org.eclipse.ui.IFolderLayout;
21 import org.eclipse.ui.IPageLayout;
22 import org.eclipse.ui.IPerspectiveFactory;
23
24
25 public class MaintenancePerspective implements IPerspectiveFactory {
26 public final static String ID = WorkbenchUiPlugin.PLUGIN_ID
27 + ".adminMaintenancePerspective";
28
29 public void createInitialLayout(IPageLayout layout) {
30 String editorArea = layout.getEditorArea();
31 layout.setEditorAreaVisible(true);
32 layout.setFixed(false);
33
34 IFolderLayout bottom = layout.createFolder("bottom",
35 IPageLayout.BOTTOM, 0.50f, editorArea);
36 bottom.addView(AdminLogView.ID);
37
38 IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
39 0.30f, editorArea);
40 left.addView(UserProfile.ID);
41 }
42 }