public abstract class BasePreferencesController extends java.lang.Object implements IPreferencesController
IPreferencesController.FurtherActionListener
Constructor and Description |
---|
BasePreferencesController() |
Modifier and Type | Method and Description |
---|---|
void |
addFurtherActionListener(IPreferencesController.FurtherActionListener listener)
Add a listener
|
protected void |
fireReloadRequired() |
protected void |
fireRestartRequired() |
protected abstract void |
initFromPrefs()
Apply current user preferences to the GUI.
|
boolean |
isReloadRequired()
Returns whether a preference has been altered such as to require the
project to be reloaded.
|
boolean |
isRestartRequired()
Returns whether a preference has been altered such as to require the
application to be restarted.
|
void |
removeFurtherActionListener(IPreferencesController.FurtherActionListener listener)
Remove a listener
|
void |
setReloadRequired(boolean reloadRequired) |
void |
setRestartRequired(boolean restartRequired) |
abstract java.lang.String |
toString()
Implementors should override this to return the name of the view as shown in the view tree.
|
void |
undoChanges()
Restore preferences controlled by this view to their current persisted
state.
|
protected boolean |
valueIsDifferent(java.lang.String prefsKey,
java.lang.Object newValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGui, getParentViewClass, persist, restoreDefaults, validate
public void addFurtherActionListener(IPreferencesController.FurtherActionListener listener)
IPreferencesController
addFurtherActionListener
in interface IPreferencesController
public void removeFurtherActionListener(IPreferencesController.FurtherActionListener listener)
IPreferencesController
removeFurtherActionListener
in interface IPreferencesController
protected boolean valueIsDifferent(java.lang.String prefsKey, java.lang.Object newValue)
protected void fireRestartRequired()
protected void fireReloadRequired()
public void setRestartRequired(boolean restartRequired)
public void setReloadRequired(boolean reloadRequired)
public boolean isRestartRequired()
IPreferencesController
isRestartRequired
in interface IPreferencesController
public boolean isReloadRequired()
IPreferencesController
isReloadRequired
in interface IPreferencesController
public void undoChanges()
IPreferencesController
undoChanges
in interface IPreferencesController
protected abstract void initFromPrefs()
public abstract java.lang.String toString()
IPreferencesController
toString
in interface IPreferencesController
toString
in class java.lang.Object