improved codetemplate wizards
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / perspective / DBPerspective.java
1 package net.sourceforge.phpdt.sql.perspective;
2
3 import org.eclipse.ui.IFolderLayout;
4 import org.eclipse.ui.IPageLayout;
5 import org.eclipse.ui.IPerspectiveFactory;
6
7 import net.sourceforge.phpdt.sql.view.PHPSourceConsole;
8
9 /**
10  * @author root
11  *
12  * To change this generated comment edit the template variable "typecomment":
13  * Window>Preferences>Java>Templates.
14  * To enable and disable the creation of type comments go to
15  * Window>Preferences>Java>Code Generation.
16  */
17 public class DBPerspective implements IPerspectiveFactory {
18         public void createInitialLayout(IPageLayout layout) {
19                 layout.setEditorAreaVisible(false);
20                 IFolderLayout side =
21                         layout.createFolder(
22                                 "side", //$NON-NLS-1$
23                                 IPageLayout.LEFT,
24                                 0.33F,
25                                 layout.getEditorArea());
26                 side.addView("net.sourceforge.phpdt.sql.view.bookmarkview"); //$NON-NLS-1$
27                 side.addView("net.sourceforge.phpdt.sql.view.queryhistoryview"); //$NON-NLS-1$
28                 layout.addView("net.sourceforge.phpdt.sql.view.sqlqueryview", IPageLayout.TOP, 0.33F, layout.getEditorArea()); //$NON-NLS-1$
29                 IFolderLayout bottomRight =
30                         layout.createFolder(
31                                 "bottomRight", //$NON-NLS-1$
32                                 IPageLayout.LEFT,
33                                 0.33F,
34                                 layout.getEditorArea());
35                 bottomRight.addView("net.sourceforge.phpdt.sql.view.tableview"); //$NON-NLS-1$
36                 bottomRight.addView("net.sourceforge.phpdt.sql.view.logview"); //$NON-NLS-1$
37   bottomRight.addView(PHPSourceConsole.CONSOLE_ID);
38         }
39
40 }