SQL Plugin copied from Quantum plugin and refactored for PHPEclipse
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / perspective / DBPerspective.java
diff --git a/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/perspective/DBPerspective.java b/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/perspective/DBPerspective.java
new file mode 100644 (file)
index 0000000..d6de785
--- /dev/null
@@ -0,0 +1,40 @@
+package net.sourceforge.phpdt.sql.perspective;
+
+import net.sourceforge.phpdt.sql.view.PHPSourceConsole;
+
+import org.eclipse.ui.IFolderLayout;
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IPerspectiveFactory;
+
+/**
+ * @author root
+ *
+ * To change this generated comment edit the template variable "typecomment":
+ * Window>Preferences>Java>Templates.
+ * To enable and disable the creation of type comments go to
+ * Window>Preferences>Java>Code Generation.
+ */
+public class DBPerspective implements IPerspectiveFactory {
+       public void createInitialLayout(IPageLayout layout) {
+               layout.setEditorAreaVisible(false);
+               IFolderLayout side =
+                       layout.createFolder(
+                               "side",
+                               IPageLayout.LEFT,
+                               0.33F,
+                               layout.getEditorArea());
+               side.addView("net.sourceforge.phpdt.sql.view.bookmarkview");
+               side.addView("net.sourceforge.phpdt.sql.view.queryhistoryview");
+               layout.addView("net.sourceforge.phpdt.sql.view.sqlqueryview", IPageLayout.TOP, 0.33F, layout.getEditorArea());
+               IFolderLayout bottomRight =
+                       layout.createFolder(
+                               "bottomRight",
+                               IPageLayout.LEFT,
+                               0.33F,
+                               layout.getEditorArea());
+               bottomRight.addView("net.sourceforge.phpdt.sql.view.tableview");
+               bottomRight.addView("net.sourceforge.phpdt.sql.view.logview");
+  //  bottomRight.addView(PHPSourceConsole.CONSOLE_ID);
+       }
+
+}