replaced a lot of deprecated code; if someone runs into a commit conflict afterwards...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / preferences / CompilerPreferencePage.java
index 16b4c43..0356e01 100644 (file)
@@ -1,10 +1,10 @@
 /*******************************************************************************
  * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials 
+ * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Common Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/cpl-v10.html
- * 
+ *
  * Contributors:
  *     IBM Corporation - initial API and implementation
  *******************************************************************************/
@@ -22,7 +22,7 @@ import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
 import org.eclipse.ui.IWorkbench;
 import org.eclipse.ui.IWorkbenchPreferencePage;
-import org.eclipse.ui.help.WorkbenchHelp;
+import org.eclipse.ui.PlatformUI;
 
 /*
  * The page to configure the compiler options.
@@ -34,16 +34,16 @@ public class CompilerPreferencePage extends PreferencePage implements IWorkbench
        public CompilerPreferencePage() {
                setPreferenceStore(PHPeclipsePlugin.getDefault().getPreferenceStore());
                setDescription(PreferencesMessages.getString("CompilerPreferencePage.description")); //$NON-NLS-1$
-               
+
                // only used when page is shown programatically
                setTitle(PreferencesMessages.getString("CompilerPreferencePage.title"));                 //$NON-NLS-1$
-               
+
                fConfigurationBlock= new CompilerConfigurationBlock(this, null);
        }
-               
+
        /*
         * @see IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
-        */     
+        */
        public void init(IWorkbench workbench) {
        }
 
@@ -52,8 +52,9 @@ public class CompilerPreferencePage extends PreferencePage implements IWorkbench
         */
        public void createControl(Composite parent) {
                super.createControl(parent);
-               WorkbenchHelp.setHelp(getControl(), IJavaHelpContextIds.COMPILER_PREFERENCE_PAGE);
-       }       
+               PlatformUI.getWorkbench().getHelpSystem().
+               setHelp(getControl(), IJavaHelpContextIds.COMPILER_PREFERENCE_PAGE);
+       }
 
        /*
         * @see PreferencePage#createContents(Composite)
@@ -70,10 +71,10 @@ public class CompilerPreferencePage extends PreferencePage implements IWorkbench
        public boolean performOk() {
                if (!fConfigurationBlock.performOk(true)) {
                        return false;
-               }       
+               }
                return super.performOk();
        }
-       
+
        /*
         * @see PreferencePage#performDefaults()
         */
@@ -81,13 +82,13 @@ public class CompilerPreferencePage extends PreferencePage implements IWorkbench
                fConfigurationBlock.performDefaults();
                super.performDefaults();
        }
-       
+
        /* (non-Javadoc)
         * @see net.sourceforge.phpdt.internal.ui.wizards.IStatusChangeListener#statusChanged(org.eclipse.core.runtime.IStatus)
         */
        public void statusChanged(IStatus status) {
                setValid(!status.matches(IStatus.ERROR));
-               StatusUtil.applyToStatusLine(this, status);             
+               StatusUtil.applyToStatusLine(this, status);
        }
 
 }