X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=ide%2Fplugins%2Forg.argeo.slc.ide.ui%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fide%2Fui%2FSlcPerspectiveFactory.java;fp=ide%2Fplugins%2Forg.argeo.slc.ide.ui%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fide%2Fui%2FSlcPerspectiveFactory.java;h=7c0084e21428adc32f80ac5b6020c98d4a36aed1;hb=3c660e05ee3da1cc7a1be77e05697d5de6d25b5e;hp=0000000000000000000000000000000000000000;hpb=10c5a7040f86f45ee6f710acd8490cc87f38b9f8;p=gpl%2Fargeo-slc.git diff --git a/ide/plugins/org.argeo.slc.ide.ui/src/main/java/org/argeo/slc/ide/ui/SlcPerspectiveFactory.java b/ide/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/ide/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"); + } + +}