* 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 - Initial API and implementation
**********************************************************************/
package net.sourceforge.phpdt.httpquery.preferences;
-
import net.sourceforge.phpdt.phphelp.PHPHelpPlugin;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
+
/**
* The preference page that holds monitor properties.
*/
-public class ConfigurationPreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
+public class ConfigurationPreferencePage extends PreferencePage implements
+ IWorkbenchPreferencePage {
/**
* ConfigurationPreferencePage constructor comment.
/**
* Create the preference options.
- *
- * @param parent org.eclipse.swt.widgets.Composite
+ *
+ * @param parent
+ * org.eclipse.swt.widgets.Composite
* @return org.eclipse.swt.widgets.Control
*/
protected Control createContents(Composite parent) {
layout.marginWidth = 0;
layout.marginHeight = 0;
composite.setLayout(layout);
- GridData data = new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL);
+ GridData data = new GridData(GridData.FILL_HORIZONTAL
+ | GridData.VERTICAL_ALIGN_FILL);
composite.setLayoutData(data);
-// WorkbenchHelp.setHelp(composite, ContextIds.PREF);
+ // WorkbenchHelp.setHelp(composite, ContextIds.PREF);
Label label = new Label(composite, SWT.WRAP);
label.setText(PHPHelpPlugin.getResource("%preferenceDescription"));
label = new Label(composite, SWT.NONE);
label.setText("");
- ConfigurationComposite monitorComp = new ConfigurationComposite(composite, SWT.NONE);
+ ConfigurationComposite monitorComp = new ConfigurationComposite(
+ composite, SWT.NONE);
data = new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL);
monitorComp.setLayoutData(data);
/**
* Initializes this preference page using the passed desktop.
- *
- * @param desktop the current desktop
+ *
+ * @param desktop
+ * the current desktop
*/
public void init(IWorkbench workbench) {
}
/**
- * Performs special processing when this page's Defaults button has been pressed.
+ * Performs special processing when this page's Defaults button has been
+ * pressed.
* <p>
* This is a framework hook method for sublcasses to do special things when
- * the Defaults button has been pressed.
- * Subclasses may override, but should call <code>super.performDefaults</code>.
+ * the Defaults button has been pressed. Subclasses may override, but should
+ * call <code>super.performDefaults</code>.
* </p>
*/
protected void performDefaults() {
-// displayButton.setSelection(WikiEditorPlugin.getDefaultShowOnActivityPreference());
+ // displayButton.setSelection(WikiEditorPlugin.getDefaultShowOnActivityPreference());
super.performDefaults();
}
/**
- * Method declared on IPreferencePage.
- * Subclasses should override
+ * Method declared on IPreferencePage. Subclasses should override
*/
public boolean performOk() {
-// WikiEditorPlugin.setShowOnActivityPreference(displayButton.getSelection());
+ // WikiEditorPlugin.setShowOnActivityPreference(displayButton.getSelection());
PHPHelpPlugin.getDefault().savePluginPreferences();
return true;
}