/* * Created on May 27, 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 A.Monadi * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class GGADPerspective implements IPerspectiveFactory { /** * Constructs a new Default layout engine. */ public GGADPerspective() { 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("GGADSimuAction"); // name of the tool bar to be used for perspective layout.addActionSet("CDModelerAction"); 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$ } }