]> git.argeo.org Git - gpl/argeo-slc.git/blob - eclipse/plugins/org.argeo.slc.ui.launch/src/main/java/org/argeo/slc/ui/launch/SlcPerspectiveFactory.java
Integrate with PDE
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.ui.launch / src / main / java / org / argeo / slc / ui / launch / SlcPerspectiveFactory.java
1 package org.argeo.slc.ui.launch;
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 SlcPerspectiveFactory implements IPerspectiveFactory {
9
10 public void createInitialLayout(IPageLayout layout) {
11 // Get the editor area.
12 String editorArea = layout.getEditorArea();
13
14 IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.25f,
15 editorArea);
16 topLeft.addView(IPageLayout.ID_RES_NAV);
17
18 IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.66f,
19 editorArea);
20 bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
21 bottom.addView(IPageLayout.ID_TASK_LIST);
22
23 layout.addActionSet("org.eclipse.debug.ui.launchActionSet");
24 }
25
26 }