]>
git.argeo.org Git - gpl/argeo-slc.git/blob - workbench/MaintenancePerspective.java
1 package org
.argeo
.cms
.ui
.workbench
;
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
;
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";
14 public void createInitialLayout(IPageLayout layout
) {
15 String editorArea
= layout
.getEditorArea();
16 layout
.setEditorAreaVisible(true);
17 layout
.setFixed(false);
19 IFolderLayout bottom
= layout
.createFolder("bottom",
20 IPageLayout
.BOTTOM
, 0.50f
, editorArea
);
21 bottom
.addView(AdminLogView
.ID
);
23 IFolderLayout left
= layout
.createFolder("left", IPageLayout
.LEFT
,
25 left
.addView(UserProfile
.ID
);