]> git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/org.argeo.slc.ide.ui/src/main/java/org/argeo/slc/ide/ui/SlcPerspectiveFactory.java
NEW - bug 11: Introduce a simplified launch for RCP
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.ide.ui / src / main / java / org / argeo / slc / ide / ui / SlcPerspectiveFactory.java
1 package org.argeo.slc.ide.ui;
2
3 import org.eclipse.jdt.ui.JavaUI;
4 import org.eclipse.ui.IFolderLayout;
5 import org.eclipse.ui.IPageLayout;
6 import org.eclipse.ui.IPerspectiveFactory;
7 import org.eclipse.ui.console.IConsoleConstants;
8
9 public class SlcPerspectiveFactory implements IPerspectiveFactory {
10
11 public void createInitialLayout(IPageLayout layout) {
12 // Get the editor area.
13 String editorArea = layout.getEditorArea();
14
15 IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.25f,
16 editorArea);
17 topLeft.addView(JavaUI.ID_PACKAGES);
18
19 IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.66f,
20 editorArea);
21 bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
22 bottom.addView(IPageLayout.ID_TASK_LIST);
23
24 layout.addActionSet("org.eclipse.debug.ui.launchActionSet");
25 }
26
27 }