de.cau.cs.kieler.kwebs.client.ui
Class RemoteLayoutPreferencePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.preference.PreferencePage
          extended by de.cau.cs.kieler.kwebs.client.ui.RemoteLayoutPreferencePage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IPreferencePage, IWorkbenchPreferencePage

public class RemoteLayoutPreferencePage
extends PreferencePage
implements IWorkbenchPreferencePage

This class provides the preference page for configuring the service based layout. In order to use service based layout in KIELER the installation of a client feature is required. Depending on whether such a feature is installed or not, the preference page displays a help text on how to install a client feature in KIELER or it displays the configuration options for the service based layout. Eclipse propagates changes in preferences with the observer pattern. To signal to its listeners that all required preferences have been updated, this page uses the Preferences.PREFID_LAYOUT_SETTINGS_CHANGED preference.

Rating red

Field Summary
static String PAGE_ID
          The id of this preference page.
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
RemoteLayoutPreferencePage()
          Creates the preference page for the remote layout options.
RemoteLayoutPreferencePage(String title, ImageDescriptor image)
          Creates the preference page for the remote layout options.
RemoteLayoutPreferencePage(String title, String description, ImageDescriptor image)
          Creates the preference page for the remote layout options.
 
Method Summary
protected  Control createContents(Composite parent)
          
 void init(IWorkbench workbench)
          
 boolean performCancel()
          
protected  void performDefaults()
          
 boolean performOk()
          
 
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage
computeSize, isValid, okToLeave, setContainer, setSize
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
 

Field Detail

PAGE_ID

public static final String PAGE_ID
The id of this preference page.

See Also:
Constant Field Values
Constructor Detail

RemoteLayoutPreferencePage

public RemoteLayoutPreferencePage()
Creates the preference page for the remote layout options.


RemoteLayoutPreferencePage

public RemoteLayoutPreferencePage(String title,
                                  ImageDescriptor image)
Creates the preference page for the remote layout options.

Parameters:
title - the title
image - the image

RemoteLayoutPreferencePage

public RemoteLayoutPreferencePage(String title,
                                  String description,
                                  ImageDescriptor image)
Creates the preference page for the remote layout options.

Parameters:
title - the title
description - the description
image - the image
Method Detail

init

public final void init(IWorkbench workbench)

Specified by:
init in interface IWorkbenchPreferencePage

createContents

protected final Control createContents(Composite parent)

Specified by:
createContents in class PreferencePage

performDefaults

protected void performDefaults()

Overrides:
performDefaults in class PreferencePage

performCancel

public final boolean performCancel()

Specified by:
performCancel in interface IPreferencePage
Overrides:
performCancel in class PreferencePage

performOk

public final boolean performOk()

Specified by:
performOk in interface IPreferencePage
Overrides:
performOk in class PreferencePage