]>
git.argeo.org Git - gpl/argeo-slc.git/blob - workbench/JcrBrowserPerspective.java
1 package org
.argeo
.cms
.ui
.workbench
;
3 import org
.argeo
.cms
.ui
.workbench
.jcr
.JcrBrowserView
;
4 import org
.argeo
.cms
.ui
.workbench
.jcr
.NodeFsBrowserView
;
5 import org
.eclipse
.ui
.IFolderLayout
;
6 import org
.eclipse
.ui
.IPageLayout
;
7 import org
.eclipse
.ui
.IPerspectiveFactory
;
9 /** Base perspective for the Jcr browser */
10 public class JcrBrowserPerspective
implements IPerspectiveFactory
{
12 public void createInitialLayout(IPageLayout layout
) {
13 layout
.setEditorAreaVisible(true);
14 IFolderLayout upperLeft
= layout
.createFolder(WorkbenchUiPlugin
.PLUGIN_ID
+ ".upperLeft", IPageLayout
.LEFT
,
15 0.4f
, layout
.getEditorArea());
16 upperLeft
.addView(JcrBrowserView
.ID
);
17 upperLeft
.addView(NodeFsBrowserView
.ID
);