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