X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/internal/WebBrowser.java b/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/internal/WebBrowser.java index 5a74d4a..24cfb5d 100644 --- a/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/internal/WebBrowser.java +++ b/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/internal/WebBrowser.java @@ -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; @@ -183,7 +183,7 @@ public class WebBrowser extends Composite { } /** - * + * */ protected void addBrowserListeners() { if (showStatusbar) { @@ -286,7 +286,7 @@ public class WebBrowser extends Composite { /** * Return the underlying browser control. - * + * * @return org.eclipse.swt.browser.Browser */ public Browser getBrowser() { @@ -294,28 +294,28 @@ public class WebBrowser extends Composite { } /** - * + * */ protected void forward() { browser.forward(); } /** - * + * */ protected void back() { browser.back(); } /** - * + * */ protected void stop() { browser.stop(); } /** - * + * */ protected void navigate(String url) { Trace.trace(Trace.FINER, "Navigate: " + url); @@ -421,7 +421,7 @@ public class WebBrowser extends Composite { } /** - * + * */ public void dispose() { super.dispose(); @@ -438,7 +438,7 @@ public class WebBrowser extends Composite { /** * Populate the toolbar. - * + * * @param toolbar * org.eclipse.swt.widgets.ToolBar */ @@ -594,7 +594,7 @@ public class WebBrowser extends Composite { /** * Returns true if the homepage is currently being displayed. - * + * * @return boolean */ protected boolean isHome() {