]>
git.argeo.org Git - gpl/argeo-slc.git/blob - workbench/UserHomePerspective.java
1 package org
.argeo
.cms
.ui
.workbench
;
3 import org
.argeo
.cms
.ui
.workbench
.jcr
.NodeFsBrowserView
;
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 /** Home perspective for the current user */
10 public class UserHomePerspective
implements IPerspectiveFactory
{
11 public final static String ID
= WorkbenchUiPlugin
.PLUGIN_ID
+ ".userHomePerspective";
13 public void createInitialLayout(IPageLayout layout
) {
14 String editorArea
= layout
.getEditorArea();
15 layout
.setEditorAreaVisible(true);
16 layout
.setFixed(false);
18 IFolderLayout left
= layout
.createFolder("left", IPageLayout
.LEFT
, 0.40f
, editorArea
);
19 left
.addView(NodeFsBrowserView
.ID
);
20 left
.addView(UserProfile
.ID
);
21 // left.addView(LogView.ID);