source: trunk/src/org/modelica/mdt/PerspectiveFactory.java @ 17

Last change on this file since 17 was 12, checked in by boris, 19 years ago
  • added new wizards shortcuts to modelica prespective
File size: 1.1 KB
Line 
1package org.modelica.mdt;
2
3import org.eclipse.ui.IFolderLayout;
4import org.eclipse.ui.IPageLayout;
5import org.eclipse.ui.IPerspectiveFactory;
6import org.eclipse.ui.console.IConsoleConstants;
7
8public class PerspectiveFactory implements IPerspectiveFactory
9{
10
11    public void createInitialLayout(IPageLayout layout)
12    {
13        /* add 'modelica projects' view */
14        IFolderLayout resources = 
15            layout.createFolder("org.modelica.mdt.resourcesArea", 
16                    IPageLayout.LEFT, 0.26f, IPageLayout.ID_EDITOR_AREA);
17        resources.addView("org.modelica.mdt.ProjectsView");
18       
19        /* add console view */
20        IFolderLayout consoleArea = 
21            layout.createFolder("org.modelica.mdt.consoleArea", 
22                    IPageLayout.BOTTOM, 0.75f, IPageLayout.ID_EDITOR_AREA);
23        consoleArea.addView(IConsoleConstants.ID_CONSOLE_VIEW);
24        consoleArea.addPlaceholder(IPageLayout.ID_PROBLEM_VIEW);
25       
26       
27        /* add new wizards */
28        layout.addNewWizardShortcut("org.modelica.mdt.NewProjectWizard");
29        layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");
30        layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");
31    }
32}
Note: See TracBrowser for help on using the repository browser.