created xdebug launch configuration icon
[phpeclipse.git] / net.sourceforge.phpeclipse.webbrowser / src / net / sourceforge / phpeclipse / webbrowser / internal / InternalBrowserDialog.java
index 7f09e03..e0261e8 100644 (file)
@@ -20,16 +20,16 @@ import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
 import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.help.WorkbenchHelp;
+import org.eclipse.ui.PlatformUI;
 /**
- * 
+ *
  */
 public class InternalBrowserDialog extends Dialog {
        protected IInternalWebBrowserWorkingCopy browser;
        protected boolean isEdit;
        protected Button newPageCheckbox;
        protected Button clearURLHistoryCheckbox;
-       
+
        /**
         * @param parentShell
         */
@@ -41,7 +41,7 @@ public class InternalBrowserDialog extends Dialog {
 
        protected void configureShell(Shell shell) {
                super.configureShell(shell);
-               
+
                if (isEdit)
                        shell.setText(WebBrowserUIPlugin.getResource("%editInternalBrowser"));
        }
@@ -52,21 +52,21 @@ public class InternalBrowserDialog extends Dialog {
        protected Control createDialogArea(Composite parent) {
                Composite composite = (Composite) super.createDialogArea(parent);
                ((GridLayout)composite.getLayout()).numColumns = 1;
-               
+
                Composite comp = new Composite(composite, SWT.NONE);
                GridLayout layout = new GridLayout(1, true);
                layout.marginHeight = 10;
                layout.marginWidth = 10;
                comp.setLayout(layout);
                comp.setLayoutData(new GridData(GridData.FILL_BOTH));
-               WorkbenchHelp.setHelp(composite, ContextIds.PREF_BROWSER_INTERNAL);
-               
+               PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, ContextIds.PREF_BROWSER_INTERNAL);
+
                newPageCheckbox = SWTUtil.createCheckbox(comp, WebBrowserUIPlugin.getResource("%prefBrowserNewPage"), false);
                clearURLHistoryCheckbox = SWTUtil.createCheckbox(comp, WebBrowserUIPlugin.getResource("%clearURLHistory"), true);
-               
+
                newPageCheckbox.setSelection(browser.getUseNewPage());
                clearURLHistoryCheckbox.setSelection(browser.getClearHistoryOnExit());
-               
+
                return composite;
        }
 
@@ -77,7 +77,7 @@ public class InternalBrowserDialog extends Dialog {
                browser.setUseNewPage(newPageCheckbox.getSelection());
                browser.setClearHistoryOnExit(clearURLHistoryCheckbox.getSelection());
                browser.save();
-               
+
                super.okPressed();
        }
 }
\ No newline at end of file