*** empty log message ***
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / PHPPerspectiveFactory.java
index d489d3d..30019d3 100644 (file)
@@ -1,9 +1,11 @@
 package net.sourceforge.phpeclipse;
 
 import org.eclipse.debug.ui.IDebugUIConstants;
+import org.eclipse.swt.SWT;
 import org.eclipse.ui.IFolderLayout;
 import org.eclipse.ui.IPageLayout;
 import org.eclipse.ui.IPerspectiveFactory;
+import org.eclipse.update.internal.ui.UpdatePerspective;
 
 public class PHPPerspectiveFactory implements IPerspectiveFactory {
 
@@ -20,22 +22,37 @@ public class PHPPerspectiveFactory implements IPerspectiveFactory {
     folder.addView(IPageLayout.ID_RES_NAV);
     //folder.addPlaceholder(IPageLayout.ID_RES_NAV);
 
-    IFolderLayout consoleArea = layout.createFolder("consoleArea", IPageLayout.BOTTOM, (float) 0.75, editorArea);
+    IFolderLayout consoleArea =
+      layout.createFolder(
+        "consoleArea",
+        IPageLayout.BOTTOM,
+        (float) 0.75,
+        editorArea);
 
     consoleArea.addView(IPageLayout.ID_TASK_LIST);
     consoleArea.addView(IDebugUIConstants.ID_CONSOLE_VIEW);
+    if (SWT.getPlatform().equals("win32")) {
+      consoleArea.addView(UpdatePerspective.ID_BROWSER);
+    }
     consoleArea.addView(IPageLayout.ID_BOOKMARKS);
 
-    layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float) 0.75, editorArea);
+    layout.addView( 
+      IPageLayout.ID_OUTLINE,
+      IPageLayout.RIGHT,
+      (float) 0.75,
+      editorArea);
 
     layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
-       layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
-       layout.addActionSet(PHPeclipsePlugin.PHP_CODING_ACTION_SET_ID);
-       
+    layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
+    layout.addActionSet(PHPeclipsePlugin.PHP_CODING_ACTION_SET_ID);
+
     layout.addShowViewShortcut(IDebugUIConstants.ID_CONSOLE_VIEW);
+    if (SWT.getPlatform().equals("win32")) {
+      layout.addShowViewShortcut(UpdatePerspective.ID_BROWSER);
+    }
+
+    // layout.addShowViewShortcut(PHPeclipsePlugin.PHP_RESOURCES_VIEW_ID);
 
-   // layout.addShowViewShortcut(PHPeclipsePlugin.PHP_RESOURCES_VIEW_ID);
-       
     // views - standard workbench
     layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
     layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);