A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / preferences / TodoTaskPreferencePage.java
index 60b3716..69613cf 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,30 +22,32 @@ 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.
  */
-public class TodoTaskPreferencePage extends PreferencePage implements IWorkbenchPreferencePage, IStatusChangeListener {
+public class TodoTaskPreferencePage extends PreferencePage implements
+               IWorkbenchPreferencePage, IStatusChangeListener {
 
-       public static final String ID= "net.sourceforge.phpdt.ui.preferences.TodoTaskPreferencePage"; //$NON-NLS-1$
+       public static final String ID = "net.sourceforge.phpdt.ui.preferences.TodoTaskPreferencePage"; //$NON-NLS-1$
 
        private TodoTaskConfigurationBlock fConfigurationBlock;
 
        public TodoTaskPreferencePage() {
                setPreferenceStore(PHPeclipsePlugin.getDefault().getPreferenceStore());
-               //setDescription(PreferencesMessages.getString("TodoTaskPreferencePage.description")); //$NON-NLS-1$
-               
+               // setDescription(PreferencesMessages.getString("TodoTaskPreferencePage.description"));
+               // //$NON-NLS-1$
+
                // only used when page is shown programatically
                setTitle(PreferencesMessages.getString("TodoTaskPreferencePage.title")); //$NON-NLS-1$
 
-               fConfigurationBlock= new TodoTaskConfigurationBlock(this, null);
+               fConfigurationBlock = new TodoTaskConfigurationBlock(this, null);
        }
-               
+
        /*
         * @see IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
-        */     
+        */
        public void init(IWorkbench workbench) {
        }
 
@@ -53,16 +55,18 @@ public class TodoTaskPreferencePage extends PreferencePage implements IWorkbench
         * @see PreferencePage#createControl(Composite)
         */
        public void createControl(Composite parent) {
-               // added for 1GEUGE6: ITPJUI:WIN2000 - Help is the same on all preference pages
+               // added for 1GEUGE6: ITPJUI:WIN2000 - Help is the same on all
+               // preference pages
                super.createControl(parent);
-               WorkbenchHelp.setHelp(getControl(), IJavaHelpContextIds.TODOTASK_PREFERENCE_PAGE);
-       }       
+               PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(),
+                               IJavaHelpContextIds.TODOTASK_PREFERENCE_PAGE);
+       }
 
        /*
         * @see PreferencePage#createContents(Composite)
         */
        protected Control createContents(Composite parent) {
-               Control result= fConfigurationBlock.createContents(parent);
+               Control result = fConfigurationBlock.createContents(parent);
                Dialog.applyDialogFont(result);
                return result;
        }
@@ -73,10 +77,10 @@ public class TodoTaskPreferencePage extends PreferencePage implements IWorkbench
        public boolean performOk() {
                if (!fConfigurationBlock.performOk(true)) {
                        return false;
-               }       
+               }
                return super.performOk();
        }
-       
+
        /*
         * @see PreferencePage#performDefaults()
         */
@@ -85,12 +89,14 @@ public class TodoTaskPreferencePage extends PreferencePage implements IWorkbench
                super.performDefaults();
        }
 
-       /* (non-Javadoc)
+       /*
+        * (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);
        }
 
 }