Initial import of the Guide contributed to the project byRobert Kraske. Was originall...
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / perspective / DBPerspective.java
1 package com.quantum.perspective;
2
3 import org.eclipse.ui.IFolderLayout;
4 import org.eclipse.ui.IPageLayout;
5 import org.eclipse.ui.IPerspectiveFactory;
6
7 /**
8  * @author root
9  */
10 public class DBPerspective implements IPerspectiveFactory {
11         public void createInitialLayout(IPageLayout layout) {
12                 layout.setEditorAreaVisible(false);
13                 IFolderLayout side =
14                         layout.createFolder(
15                                 "side", //$NON-NLS-1$
16                                 IPageLayout.LEFT,
17                                 0.33F,
18                                 layout.getEditorArea());
19                 side.addView("com.quantum.view.bookmarkview"); //$NON-NLS-1$
20                 layout.addView("com.quantum.view.sqlqueryview", IPageLayout.BOTTOM, 0.33F, layout.getEditorArea()); //$NON-NLS-1$
21                 IFolderLayout bottomRight =
22                         layout.createFolder(
23                                 "bottomRight", //$NON-NLS-1$
24                                 IPageLayout.BOTTOM,
25                                 0.33F,
26                 "com.quantum.view.sqlqueryview");
27                 bottomRight.addView("com.quantum.view.tableview.TableView"); //$NON-NLS-1$
28                 bottomRight.addView("com.quantum.view.logview"); //$NON-NLS-1$
29         }
30 }