]> 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
some tries to understand file upload problem with RAP 2.x
[lgpl/argeo-commons.git] / server / plugins / org.argeo.jcr.ui.explorer / src / main / java / org / argeo / jcr / ui / explorer / JcrExplorerPerspective.java
1 /*
2 * Copyright (C) 2007-2012 Argeo GmbH
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16 package org.argeo.jcr.ui.explorer;
17
18 import org.eclipse.ui.IFolderLayout;
19 import org.eclipse.ui.IPageLayout;
20 import org.eclipse.ui.IPerspectiveFactory;
21
22 /** Base perspective for JcrExplorer browser */
23 public class JcrExplorerPerspective implements IPerspectiveFactory {
24 public static String BROWSER_VIEW_ID = JcrExplorerPlugin.ID
25 + ".browserView";
26
27 public void createInitialLayout(IPageLayout layout) {
28 layout.setEditorAreaVisible(true);
29
30 IFolderLayout upperLeft = layout.createFolder(JcrExplorerPlugin.ID
31 + ".upperLeft", IPageLayout.LEFT, 0.4f, layout.getEditorArea());
32 upperLeft.addView(BROWSER_VIEW_ID);
33
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);
39 }
40
41 }