|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockcentral.editor.wizards.WizardDialogSettingsManager
public abstract class WizardDialogSettingsManager
Base for classes used to manage the various wizard dialog settings for the Mock Central editor plugin. This class handles storing and retrieving dialog size and location settings stored in sections based on the subclass canonical name and provides convenience methods for accessing setting data.
| Field Summary | |
|---|---|
protected org.eclipse.jface.wizard.WizardDialog |
dialog
The WizardDialog the settings of which are managed by this
instance. |
protected static java.lang.String |
DIALOG_HEIGHT
the identifier for the dialog settings section preserving the dialog height |
protected static java.lang.String |
DIALOG_LOCATION_SETTINGS
the identifier for the dialog settings section preserving the dialog location |
protected static java.lang.String |
DIALOG_LOCATION_X
the identifier for the dialog settings section preserving the dialog horizontal location |
protected static java.lang.String |
DIALOG_LOCATION_Y
the identifier for the dialog settings section preserving the dialog vertical location |
protected static java.lang.String |
DIALOG_SIZE_SETTINGS
the identifier for the dialog settings section preserving the dialog size |
protected static java.lang.String |
DIALOG_WIDTH
the identifier for the dialog settings section preserving the dialog width |
protected org.eclipse.jface.dialogs.IDialogSettings |
settings
The IDialogSettings for this instance. |
| Constructor Summary | |
|---|---|
WizardDialogSettingsManager(org.eclipse.jface.wizard.WizardDialog dialog)
Creates a new settings manager. |
|
| Method Summary | |
|---|---|
protected boolean |
getBooleanSetting(java.lang.String key)
Convenience method for subclasses which returns a boolean value for a setting stored under the supplied String. |
org.eclipse.swt.graphics.Point |
getDialogLocation()
Returns a Point describing the current dialog location. |
org.eclipse.swt.graphics.Point |
getDialogSize()
Returns a Point describing the current dialog size. |
org.eclipse.swt.graphics.Point |
getInitialDialogLocation(org.eclipse.swt.graphics.Point defaultInitialLocation)
Returns a Point describing the previously set dialog
location, or the provided default value if none has been set yet. |
org.eclipse.swt.graphics.Point |
getInitialDialogSize()
Returns a Point describing the previously set dialog size,
or a default value if none has been set yet. |
java.lang.String |
getStringSetting(java.lang.String key)
Returns a setting. |
protected void |
loadSettings()
Assigns the IDialogSettings for this instance, getting them
from the plug-in or (if none currently stored) creating them using the
canonical name of the class. |
protected void |
storeSizeAndLocationSettings()
Stores all settings preserving the dialog's size and location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String DIALOG_SIZE_SETTINGS
protected static final java.lang.String DIALOG_HEIGHT
protected static final java.lang.String DIALOG_WIDTH
protected static final java.lang.String DIALOG_LOCATION_SETTINGS
protected static final java.lang.String DIALOG_LOCATION_X
protected static final java.lang.String DIALOG_LOCATION_Y
protected org.eclipse.jface.dialogs.IDialogSettings settings
IDialogSettings for this instance.
protected org.eclipse.jface.wizard.WizardDialog dialog
WizardDialog the settings of which are managed by this
instance.
| Constructor Detail |
|---|
public WizardDialogSettingsManager(org.eclipse.jface.wizard.WizardDialog dialog)
dialog - the WizardDialog the settings of which are
managed by this instance.| Method Detail |
|---|
public org.eclipse.swt.graphics.Point getDialogSize()
Point describing the current dialog size.
Point describing the current dialog size.public org.eclipse.swt.graphics.Point getDialogLocation()
Point describing the current dialog location.
Point describing the current dialog location.public org.eclipse.swt.graphics.Point getInitialDialogSize()
Point describing the previously set dialog size,
or a default value if none has been set yet.
Point describing the previously set dialog size.public org.eclipse.swt.graphics.Point getInitialDialogLocation(org.eclipse.swt.graphics.Point defaultInitialLocation)
Point describing the previously set dialog
location, or the provided default value if none has been set yet.
defaultInitialLocation - the default dialog location.
Point describing the previously set dialog
location.public java.lang.String getStringSetting(java.lang.String key)
key - the String under which the setting is stored.
protected void loadSettings()
IDialogSettings for this instance, getting them
from the plug-in or (if none currently stored) creating them using the
canonical name of the class.
protected void storeSizeAndLocationSettings()
protected boolean getBooleanSetting(java.lang.String key)
key - the String under which the setting is stored.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||