X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/SpellingPreferencePage.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/SpellingPreferencePage.java index 3ab69b1..fdb8eb8 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/SpellingPreferencePage.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/preferences/SpellingPreferencePage.java @@ -1,10 +1,10 @@ /******************************************************************************* * Copyright (c) 2000, 2004 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 *******************************************************************************/ @@ -23,17 +23,19 @@ 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; /** * Preference page for spell checking preferences. * * @since 3.0 */ -public class SpellingPreferencePage extends PreferencePage implements IWorkbenchPreferencePage, IStatusChangeListener { +public class SpellingPreferencePage extends PreferencePage implements + IWorkbenchPreferencePage, IStatusChangeListener { /** The spelling configuration block */ - private final SpellingConfigurationBlock fBlock= new SpellingConfigurationBlock(this, null); + private final SpellingConfigurationBlock fBlock = new SpellingConfigurationBlock( + this, null); /** * Creates a new spelling preference page. @@ -41,7 +43,8 @@ public class SpellingPreferencePage extends PreferencePage implements IWorkbench public SpellingPreferencePage() { setPreferenceStore(PHPeclipsePlugin.getDefault().getPreferenceStore()); - setDescription(PreferencesMessages.getString("SpellingPreferencePage.description")); //$NON-NLS-1$ + setDescription(PreferencesMessages + .getString("SpellingPreferencePage.description")); //$NON-NLS-1$ setTitle(PreferencesMessages.getString("SpellingPreferencePage.title")); //$NON-NLS-1$ } @@ -50,7 +53,7 @@ public class SpellingPreferencePage extends PreferencePage implements IWorkbench */ protected Control createContents(final Composite parent) { - final Control control= fBlock.createContents(parent); + final Control control = fBlock.createContents(parent); Dialog.applyDialogFont(control); return control; @@ -61,7 +64,8 @@ public class SpellingPreferencePage extends PreferencePage implements IWorkbench */ public void createControl(final Composite parent) { super.createControl(parent); - WorkbenchHelp.setHelp(getControl(), IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE); + PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), + IJavaHelpContextIds.JAVA_EDITOR_PREFERENCE_PAGE); } /* @@ -92,7 +96,7 @@ public class SpellingPreferencePage extends PreferencePage implements IWorkbench } /* - * @see org.eclipse.jdt.internal.ui.wizards.IStatusChangeListener#statusChanged(org.eclipse.core.runtime.IStatus) + * @see net.sourceforge.phpdt.internal.ui.wizards.IStatusChangeListener#statusChanged(org.eclipse.core.runtime.IStatus) */ public void statusChanged(final IStatus status) { setValid(!status.matches(IStatus.ERROR));