/*******************************************************************************
* 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
*******************************************************************************/
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.
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$
}
*/
protected Control createContents(final Composite parent) {
- final Control control= fBlock.createContents(parent);
+ final Control control = fBlock.createContents(parent);
Dialog.applyDialogFont(control);
return control;
*/
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);
}
/*
}
/*
- * @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));