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;
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);
}
});
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);
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;
}
/**
- *
+ *
*/
protected void addBrowserListeners() {
if (showStatusbar) {
/**
* Return the underlying browser control.
- *
+ *
* @return org.eclipse.swt.browser.Browser
*/
public Browser getBrowser() {
}
/**
- *
+ *
*/
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);
}
/**
- *
+ *
*/
public void dispose() {
super.dispose();
/**
* Populate the toolbar.
- *
+ *
* @param toolbar
* org.eclipse.swt.widgets.ToolBar
*/
/**
* Returns true if the homepage is currently being displayed.
- *
+ *
* @return boolean
*/
protected boolean isHome() {