| 1 | /** |
| 2 | * |
| 3 | */ |
| 4 | package de.uka.ipd.sdq.pcmbench.perspectives; |
| 5 | |
| 6 | import org.eclipse.ui.IPageLayout; |
| 7 | import org.eclipse.ui.IPerspectiveFactory; |
| 8 | |
| 9 | /** |
| 10 | * @author johann |
| 11 | * |
| 12 | */ |
| 13 | public class SoftwareArchitectPerspective implements IPerspectiveFactory { |
| 14 | |
| 15 | /* (non-Javadoc) |
| 16 | * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout) |
| 17 | */ |
| 18 | public void createInitialLayout(IPageLayout layout) { |
| 19 | // TODO Auto-generated method stub |
| 20 | String editorArea = layout.getEditorArea(); |
| 21 | layout.setEditorAreaVisible(true); |
| 22 | layout.setFixed(false); |
| 23 | |
| 24 | layout.addPerspectiveShortcut("de.uka.ipd.sdq.pcmbench.componentdeveloper_perspective"); |
| 25 | layout.addPerspectiveShortcut("de.uka.ipd.sdq.pcmbench.softwarearchitect_perspective"); |
| 26 | layout.addPerspectiveShortcut("de.uka.ipd.sdq.pcmbench.deployer_perspective"); |
| 27 | layout.addPerspectiveShortcut("de.uka.ipd.sdq.pcmbench.domainexpert_perspective"); |
| 28 | layout.addPerspectiveShortcut("de.uka.ipd.sdq.pcmbench.qosanalyst_perspective"); |
| 29 | |
| 30 | layout.addView("org.eclipse.ui.examples.navigator.view", IPageLayout.LEFT, 0.25f, editorArea); |
| 31 | } |
| 32 | |
| 33 | } |