1 | /** |
2 | * |
3 | */ |
4 | package de.uka.ipd.sdq.sensorframework.visualisation.perspective; |
5 | |
6 | import org.eclipse.debug.ui.IDebugUIConstants; |
7 | import org.eclipse.ui.IFolderLayout; |
8 | import org.eclipse.ui.IPageLayout; |
9 | import org.eclipse.ui.IPerspectiveFactory; |
10 | |
11 | /** |
12 | * @author admin |
13 | * |
14 | */ |
15 | public class SimuBenchPerspective implements IPerspectiveFactory { |
16 | |
17 | private static final String EXPERIMENTS_VIEW = "de.uka.ipd.sdq.codegen.simudatavisualization.ExperimentsView"; |
18 | |
19 | /* (non-Javadoc) |
20 | * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout) |
21 | */ |
22 | public void createInitialLayout(IPageLayout layout) { |
23 | |
24 | String editorArea = layout.getEditorArea(); |
25 | layout.setEditorAreaVisible(true); |
26 | layout.setFixed(false); |
27 | //layout.addActionSet(MAIN_ACTION_SET); |
28 | |
29 | IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.25f, editorArea); |
30 | IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, editorArea); |
31 | |
32 | topLeft.addView(EXPERIMENTS_VIEW); |
33 | |
34 | bottom.addView(IPageLayout.ID_PROP_SHEET); |
35 | bottom.addView(IPageLayout.ID_PROBLEM_VIEW); |
36 | |
37 | layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET); |
38 | } |
39 | } |