1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 /***
19 * <p>Title: WSMO Studio</p>
20 * <p>Description: Semantic Web Service Editor</p>
21 * <p>Copyright: Copyright (c) 2004-2006</p>
22 * <p>Company: OntoText Lab. / SIRMA </p>
23 */
24
25 package org.wsmostudio.ui.perspective;
26
27 import org.eclipse.ui.*;
28 import org.wsmostudio.repository.ui.RepositoriesExplorer;
29
30 /***
31 * The <code>RepositoryPerspectiveFactory</code> generates the initial page layout for
32 * the Repository perspective.
33 * When a new page is created in the workbench a perspective is used to define
34 * the initial page layout.
35 * The perspective consists of two standard Eclipse views (<i>Resource Navigator</I>
36 * and <i>Properties</i> view) and one custom view (<i>Repositories Explorer</i>), which
37 * occupy different page regions.
38 *
39 * @author not attributable
40 * @version $Revision: 469 $ $Date: 2006-01-09 14:51:14 +0200 $
41 */
42
43 public class RepositoryPerspectiveFactory implements IPerspectiveFactory {
44
45 public void createInitialLayout(IPageLayout layout) {
46 String edName = layout.getEditorArea();
47 IFolderLayout naviFolder = layout.createFolder("naviFolder", IPageLayout.LEFT, 0.3f, edName);
48 naviFolder.addView(IPageLayout.ID_RES_NAV);
49
50 IFolderLayout outlineFolder = layout.createFolder("outlineFolder", IPageLayout.BOTTOM, 0.5f, "naviFolder");
51 outlineFolder.addView(RepositoriesExplorer.VIEW_ID);
52
53 IFolderLayout propsFolder = layout.createFolder("propsFolder", IPageLayout.BOTTOM, 0.8f, edName);
54 propsFolder.addView(IPageLayout.ID_PROP_SHEET);
55 }
56
57 public boolean isFixed(){
58 return false;
59 }
60 }
61
62
63
64
65
66
67
68
69
70
71
72
73