removing static project references to avoid confusion on build path
[phpeclipse.git] / net.sourceforge.phpeclipse.webbrowser / src / net / sourceforge / phpeclipse / webbrowser / internal / WebBrowser.java
index 1556311..24cfb5d 100644 (file)
@@ -45,7 +45,7 @@ import org.eclipse.swt.widgets.ProgressBar;
 import org.eclipse.swt.widgets.Shell;
 import org.eclipse.swt.widgets.ToolBar;
 import org.eclipse.swt.widgets.ToolItem;
-import org.eclipse.ui.help.WorkbenchHelp;
+import org.eclipse.ui.PlatformUI;
 
 public class WebBrowser extends Composite {
   protected Composite toolbarComp;
@@ -103,7 +103,7 @@ public class WebBrowser extends Composite {
     setLayout(layout);
     setLayoutData(new GridData(GridData.FILL_BOTH));
     clipboard = new Clipboard(parent.getDisplay());
-    WorkbenchHelp.setHelp(this, ContextIds.WEB_BROWSER);
+    PlatformUI.getWorkbench().getHelpSystem().setHelp(this, ContextIds.WEB_BROWSER);
 
     if (showToolbar) {
       toolbarComp = new Composite(this, SWT.NONE);
@@ -142,7 +142,7 @@ public class WebBrowser extends Composite {
         }
       });
       combo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-      WorkbenchHelp.setHelp(combo, ContextIds.WEB_BROWSER_URL);
+      PlatformUI.getWorkbench().getHelpSystem().setHelp(combo, ContextIds.WEB_BROWSER_URL);
 
       ToolBar toolbar = new ToolBar(top, SWT.FLAT);
       fillToolBar(toolbar);
@@ -167,7 +167,7 @@ public class WebBrowser extends Composite {
       forward.setEnabled(browser.isForwardEnabled());
     }
 
-    WorkbenchHelp.setHelp(browser, ContextIds.WEB_BROWSER_WEB);
+    PlatformUI.getWorkbench().getHelpSystem().setHelp(browser, ContextIds.WEB_BROWSER_WEB);
     GridData data = new GridData();
     data.horizontalAlignment = GridData.FILL;
     data.verticalAlignment = GridData.FILL;