/* * Created on June 2, 2004 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package CDBuilder; import org.eclipse.ui.IFolderLayout; import org.eclipse.ui.IPageLayout; import org.eclipse.ui.IPerspectiveFactory; /** * @author AMonadi, ssim * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class CELLDEVSPerspective implements IPerspectiveFactory { /** * Constructs a new Default layout engine. */ public CELLDEVSPerspective() { super(); } public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout folder= layout.createFolder("left", IPageLayout.LEFT, (float)0.20, editorArea); //$NON-NLS-1$ folder.addView(IPageLayout.ID_RES_NAV); IFolderLayout outputfolder= layout.createFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$ outputfolder.addView("ConsoleView"); outputfolder.addView(IPageLayout.ID_TASK_LIST); layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.BOTTOM, (float)0.50, IPageLayout.ID_RES_NAV); //layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET); layout.addActionSet("CDModelerAction"); layout.addActionSet("CELLDEVSAction"); // name of the tool bar to be used for perspective //these tool bars are created in the plugin.xml layout.addShowViewShortcut("ConsoleView"); layout.addShowViewShortcut(IPageLayout.ID_OUTLINE); layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST); layout.addShowViewShortcut(IPageLayout.ID_RES_NAV); layout.addNewWizardShortcut("CDProjectWizard");//$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");//$NON-NLS-1$ } }