Integrated first version of new SWT Browser (MSIE under Windows; Mozilla under Linux)
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / PHPPerspectiveFactory.java
index 0f29b99..dcc15e4 100644 (file)
@@ -1,7 +1,8 @@
 package net.sourceforge.phpeclipse;
 
+import net.sourceforge.phpeclipse.views.browser.BrowserView;
+
 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;
@@ -30,10 +31,7 @@ public class PHPPerspectiveFactory implements IPerspectiveFactory {
         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(org.eclipse.ui.console.IConsoleConstants.ID_CONSOLE_VIEW);   
     consoleArea.addView(IPageLayout.ID_BOOKMARKS);
 
     layout.addView( 
@@ -46,11 +44,11 @@ public class PHPPerspectiveFactory implements IPerspectiveFactory {
     layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
     layout.addActionSet(PHPeclipsePlugin.PHP_CODING_ACTION_SET_ID);
 
-    layout.addShowViewShortcut(IDebugUIConstants.ID_CONSOLE_VIEW);
+    layout.addShowViewShortcut(org.eclipse.ui.console.IConsoleConstants.ID_CONSOLE_VIEW);
 //    if (SWT.getPlatform().equals("win32")) {
-//      layout.addShowViewShortcut(UpdatePerspective.ID_BROWSER);
-//    }
-
+//        layout.addShowViewShortcut(UpdatePerspective.ID_BROWSER);
+//      }
+    layout.addShowViewShortcut(BrowserView.ID_BROWSER);
     // layout.addShowViewShortcut(PHPeclipsePlugin.PHP_RESOURCES_VIEW_ID);
 
     // views - standard workbench