01: package com.bostechcorp.cbesb.ui.ide.perspective;
02:
03: import org.eclipse.jdt.ui.JavaUI;
04: import org.eclipse.ui.IFolderLayout;
05: import org.eclipse.ui.IPageLayout;
06: import org.eclipse.ui.IPerspectiveFactory;
07:
08: import com.bostechcorp.cbesb.ui.etl.views.DataSourceMapperPaletteView;
09: import com.bostechcorp.cbesb.ui.etl.views.DataSourceMapperPropertiesView;
10:
11: public class DataSourceMapperPerpective implements IPerspectiveFactory {
12:
13: /**
14: * Creates the initial layout for a page.
15: */
16: public void createInitialLayout(IPageLayout layout) {
17:
18: String editorArea = layout.getEditorArea();
19: addFastViews(layout);
20: addViewShortcuts(layout);
21: addPerspectiveShortcuts(layout);
22: IFolderLayout folder = layout.createFolder("left",
23: IPageLayout.LEFT, (float) 0.3, layout.ID_EDITOR_AREA);
24: folder.addView(DataSourceMapperPropertiesView.ID);
25: folder.addView(JavaUI.ID_PACKAGES);
26: layout.addView(DataSourceMapperPaletteView.ID,
27: IPageLayout.RIGHT, 0.84f, editorArea);
28: }
29:
30: /**
31: * Add fast views to the perspective.
32: */
33: private void addFastViews(IPageLayout layout) {
34: }
35:
36: /**
37: * Add view shortcuts to the perspective.
38: */
39: private void addViewShortcuts(IPageLayout layout) {
40: }
41:
42: /**
43: * Add perspective shortcuts to the perspective.
44: */
45: private void addPerspectiveShortcuts(IPageLayout layout) {
46: }
47:
48: }
|