java.lang.Object | +--com.ibm.lab.soln.dialogs.DialogsPlugin.PreferenceListener
Logic to manage the addition and removal of a change
listener for preference settings. Used by the
MyPrefPageControl
preference page to control when
a change listener is active.
Constructor Summary | |
DialogsPlugin.PreferenceListener()
|
Method Summary | |
static void |
addListener()
Add a change listener for DialogsPlugin managed
preferences. |
static void |
addPreferencesListener()
Adds a preferences listener, using the listener and event types defined in the Preferences class. |
static void |
addPrefStoreListener()
Adds a PreferenceStore listener using the IPropertyChangeListener
listener and PropertyChangeEvent event types. |
static boolean |
hasPrefListener()
Returns the hasPrefListener. |
static void |
removeListener()
Removes the change listener that was added previously. |
protected static void |
resultInformation(java.lang.String title,
java.lang.String msg)
Uses a MessageDialog to show preference value changes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DialogsPlugin.PreferenceListener()
Method Detail |
public static void addListener()
DialogsPlugin
managed
preferences. Two options are available, both are defined,
but only one is invoked here, depending on the value of
the hasPrefListener
field.public static void addPreferencesListener()
Preferences
class.public static void addPrefStoreListener()
IPropertyChangeListener
listener and PropertyChangeEvent
event types.public static boolean hasPrefListener()
public static void removeListener()
protected static void resultInformation(java.lang.String title, java.lang.String msg)
MessageDialog
to show preference value changes.MessageDialog