removing static project references to avoid confusion on build path
[phpeclipse.git] / net.sourceforge.phpeclipse.webbrowser / src / net / sourceforge / phpeclipse / webbrowser / internal / InternetPreferencePage.java
index cc403d8..0b5c512 100644 (file)
  */
 package net.sourceforge.phpeclipse.webbrowser.internal;
 
-import org.eclipse.swt.*;
-import org.eclipse.swt.layout.*;
-import org.eclipse.swt.widgets.*;
 import org.eclipse.jface.dialogs.Dialog;
 import org.eclipse.jface.preference.PreferencePage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Label;
 import org.eclipse.ui.IWorkbench;
 import org.eclipse.ui.IWorkbenchPreferencePage;
-import org.eclipse.ui.help.WorkbenchHelp;
+import org.eclipse.ui.PlatformUI;
 /**
  * A preference page that holds internet preferences.
  */
@@ -38,7 +41,7 @@ public class InternetPreferencePage extends PreferencePage implements IWorkbench
         */
        protected Control createContents(Composite parent) {
                initializeDialogUnits(parent);
-               
+
                Composite composite = new Composite(parent, SWT.NONE);
                GridLayout layout = new GridLayout();
                layout.numColumns = 1;
@@ -49,15 +52,15 @@ public class InternetPreferencePage extends PreferencePage implements IWorkbench
                composite.setLayout(layout);
                GridData data = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL);
                composite.setLayoutData(data);
-               WorkbenchHelp.setHelp(composite, ContextIds.PREF_BROWSER);
-               
+               PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, ContextIds.PREF_BROWSER);
+
                Label label = new Label(composite, SWT.WRAP);
                label.setText(WebBrowserUIPlugin.getResource("%preferenceInternetDescription"));
                data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
                label.setLayoutData(data);
-               
+
                Dialog.applyDialogFont(composite);
-               
+
                return composite;
        }