changes for new action for breakpoint
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / PHPPerspectiveFactory.java
1 package net.sourceforge.phpeclipse;
2
3 import org.eclipse.debug.ui.IDebugUIConstants;
4 import org.eclipse.ui.IFolderLayout;
5 import org.eclipse.ui.IPageLayout;
6 import org.eclipse.ui.IPerspectiveFactory;
7 //import org.eclipse.update.internal.ui.UpdatePerspective;
8
9 public class PHPPerspectiveFactory implements IPerspectiveFactory {
10
11   public PHPPerspectiveFactory() {
12     super();
13   }
14
15   public void createInitialLayout(IPageLayout layout) {
16     String editorArea = layout.getEditorArea();
17
18     //          IFolderLayout phpResourcesArea = layout.createFolder("phpresourcesarea", IPageLayout.LEFT, (float)0.25, editorArea);
19     //          phpResourcesArea.addView(PHPeclipsePlugin.PHP_RESOURCES_VIEW_ID);
20     IFolderLayout folder = layout.createFolder("left", IPageLayout.LEFT, (float) 0.25, editorArea); //$NON-NLS-1$
21     folder.addView(IPageLayout.ID_RES_NAV);
22     //folder.addPlaceholder(IPageLayout.ID_RES_NAV);
23
24     IFolderLayout consoleArea =
25       layout.createFolder(
26         "consoleArea",
27         IPageLayout.BOTTOM,
28         (float) 0.75,
29         editorArea);
30
31     consoleArea.addView(IPageLayout.ID_TASK_LIST);
32     consoleArea.addView(org.eclipse.ui.console.IConsoleConstants.ID_CONSOLE_VIEW);   
33     consoleArea.addView(IPageLayout.ID_BOOKMARKS);
34
35     layout.addView( 
36       IPageLayout.ID_OUTLINE,
37       IPageLayout.RIGHT,
38       (float) 0.75,
39       editorArea);
40
41     layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
42     layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
43     layout.addActionSet(PHPeclipsePlugin.PHP_CODING_ACTION_SET_ID);
44
45     layout.addShowViewShortcut(org.eclipse.ui.console.IConsoleConstants.ID_CONSOLE_VIEW);
46 //    if (SWT.getPlatform().equals("win32")) {
47 //        layout.addShowViewShortcut(UpdatePerspective.ID_BROWSER);
48 //      }
49     // layout.addShowViewShortcut(PHPeclipsePlugin.PHP_RESOURCES_VIEW_ID);
50
51     // views - standard workbench
52     layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
53     layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
54     layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS);
55
56     // new actions - PHP project creation wizards
57 //              layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard"); //$NON-NLS-1$
58                 layout.addNewWizardShortcut("net.sourceforge.phpeclipse.wizards.PHPFileWizard");         //$NON-NLS-1$
59                 layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");//$NON-NLS-1$
60                 layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");//$NON-NLS-1$
61   }
62
63 }