]>
git.argeo.org Git - gpl/argeo-slc.git/blob - workbench/SecurityAdminPerspective.java
1 package org
.argeo
.cms
.ui
.workbench
;
3 import org
.argeo
.cms
.ui
.workbench
.internal
.useradmin
.parts
.GroupsView
;
4 import org
.argeo
.cms
.ui
.workbench
.internal
.useradmin
.parts
.UsersView
;
5 import org
.eclipse
.ui
.IFolderLayout
;
6 import org
.eclipse
.ui
.IPageLayout
;
7 import org
.eclipse
.ui
.IPerspectiveFactory
;
9 /** Default perspective to manage users and groups */
10 public class SecurityAdminPerspective
implements IPerspectiveFactory
{
11 public void createInitialLayout(IPageLayout layout
) {
12 String editorArea
= layout
.getEditorArea();
13 layout
.setEditorAreaVisible(true);
14 layout
.setFixed(false);
16 IFolderLayout left
= layout
.createFolder("left", IPageLayout
.LEFT
, 0.3f
, editorArea
);
17 IFolderLayout right
= layout
.createFolder("right", IPageLayout
.RIGHT
, 0.5f
, editorArea
);
18 left
.addView(UsersView
.ID
);
19 right
.addView(GroupsView
.ID
);