1 18 package org.visualcontent.ui; 19 20 import org.eclipse.ui.IFolderLayout; 21 import org.eclipse.ui.IPageLayout; 22 import org.eclipse.ui.IPerspectiveFactory; 23 24 public class JCRPerspectiveFactory implements IPerspectiveFactory { 25 26 private static final String NODE_TREE_VIEW_ID="org.visualcontent.ui.nodetree.NodeTreeViewPart"; 27 private static final String NODE_PROPERTY_LIST_VIEW_ID="org.visualcontent.ui.nodepropertylist.NodePropertyList"; 28 private static final String REPOSITORY_PROPERTY_LIST_VIEW_ID="org.visualcontent.ui.nodepropertylist.RepositoryPropertyList"; 29 private static final String NAMESPACE_LIST_VIEW_ID="org.visualcontent.ui.namespacelist.NamespaceList"; 30 public void createInitialLayout(IPageLayout layout) { 31 String editorArea = layout.getEditorArea(); 32 layout.addView(NODE_TREE_VIEW_ID,IPageLayout.RIGHT,0.75f,editorArea); 34 35 IFolderLayout bottom = layout.createFolder("bottom",IPageLayout.BOTTOM,0.66f,editorArea); 37 bottom.addView(NODE_PROPERTY_LIST_VIEW_ID); 38 bottom.addView(REPOSITORY_PROPERTY_LIST_VIEW_ID); 39 bottom.addView(NAMESPACE_LIST_VIEW_ID); 40 } 41 42 } 43 | Popular Tags |