X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=eclipse%2Fplugins%2Forg.argeo.slc.ide.ui%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fide%2Fui%2FSlcPerspectiveFactory.java;fp=eclipse%2Fplugins%2Forg.argeo.slc.ide.ui%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fide%2Fui%2FSlcPerspectiveFactory.java;h=7c0084e21428adc32f80ac5b6020c98d4a36aed1;hb=7608332865a01c65a10424e5580a287ff4eb17a7;hp=0000000000000000000000000000000000000000;hpb=dfdc31c132a0105fc1cca169b232ff9365030ac8;p=gpl%2Fargeo-slc.git diff --git a/eclipse/plugins/org.argeo.slc.ide.ui/src/main/java/org/argeo/slc/ide/ui/SlcPerspectiveFactory.java b/eclipse/plugins/org.argeo.slc.ide.ui/src/main/java/org/argeo/slc/ide/ui/SlcPerspectiveFactory.java new file mode 100644 index 000000000..7c0084e21 --- /dev/null +++ b/eclipse/plugins/org.argeo.slc.ide.ui/src/main/java/org/argeo/slc/ide/ui/SlcPerspectiveFactory.java @@ -0,0 +1,27 @@ +package org.argeo.slc.ide.ui; + +import org.eclipse.jdt.ui.JavaUI; +import org.eclipse.ui.IFolderLayout; +import org.eclipse.ui.IPageLayout; +import org.eclipse.ui.IPerspectiveFactory; +import org.eclipse.ui.console.IConsoleConstants; + +public class SlcPerspectiveFactory implements IPerspectiveFactory { + + public void createInitialLayout(IPageLayout layout) { + // Get the editor area. + String editorArea = layout.getEditorArea(); + + IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.25f, + editorArea); + topLeft.addView(JavaUI.ID_PACKAGES); + + IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.66f, + editorArea); + bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW); + bottom.addView(IPageLayout.ID_TASK_LIST); + + layout.addActionSet("org.eclipse.debug.ui.launchActionSet"); + } + +}