/* * Created on Jun 25, 2003 * * 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 ssim * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class CDPerspective implements IPerspectiveFactory { /** * Constructs a new Default layout engine. */ public CDPerspective() { 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); //Adding tool-bars [plugins] to the eclipse environment layout.addActionSet("CDModelerAction"); layout.addActionSet("SimuAction"); //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$ } }