]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/jcr/ui/explorer/JcrExplorerPerspective.java
2 * Copyright (C) 2007-2012 Mathieu Baudier
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org
.argeo
.jcr
.ui
.explorer
;
18 import org
.eclipse
.ui
.IFolderLayout
;
19 import org
.eclipse
.ui
.IPageLayout
;
20 import org
.eclipse
.ui
.IPerspectiveFactory
;
22 /** Base perspective for JcrExplorer browser */
23 public class JcrExplorerPerspective
implements IPerspectiveFactory
{
24 public static String BROWSER_VIEW_ID
= JcrExplorerPlugin
.ID
27 public void createInitialLayout(IPageLayout layout
) {
28 layout
.setEditorAreaVisible(true);
30 IFolderLayout upperLeft
= layout
.createFolder(JcrExplorerPlugin
.ID
31 + ".upperLeft", IPageLayout
.LEFT
, 0.4f
, layout
.getEditorArea());
32 upperLeft
.addView(BROWSER_VIEW_ID
);
34 // String editorArea = layout.getEditorArea();
35 // String logViewId = "org.argeo.security.ui.logView";
36 // IFolderLayout bottom = layout.createFolder("bottom",
37 // IPageLayout.BOTTOM, 0.50f, editorArea);
38 // bottom.addView(logViewId);