|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDialog
org.eclipse.contribution.visualiser.internal.preference.VisualiserPreferencesDialog
Dialog containing Visualiser preferences Mostly copied from org.eclipse.jface.preference.PreferenceDialog
Field Summary | |
static java.lang.String |
PREF_DLG_IMG_TITLE_ERROR
|
static java.lang.String |
PREF_DLG_TITLE_IMG
|
Constructor Summary | |
VisualiserPreferencesDialog(Shell parentShell)
Default constructor |
Method Summary | |
IPreferenceStore |
getPreferenceStore()
Get the preference store |
void |
setErrorMessage(java.lang.String newErrorMessage)
Display the given error message. |
void |
setMessage(java.lang.String newMessage)
Set the message text. |
void |
setMessage(java.lang.String newMessage,
int newType)
Sets the message for this dialog with an indication of what type of message it is. |
void |
updateButtons()
Update the enabled state of buttons in the page |
void |
updateMessage()
Update the message |
void |
updateTitle()
Update the title |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PREF_DLG_TITLE_IMG
public static final java.lang.String PREF_DLG_IMG_TITLE_ERROR
Constructor Detail |
public VisualiserPreferencesDialog(Shell parentShell)
parentShell
- Method Detail |
public void setErrorMessage(java.lang.String newErrorMessage)
null
.
public IPreferenceStore getPreferenceStore()
org.eclipse.jface.preference.IPreferencePageContainer#getPreferenceStore()
public void updateButtons()
org.eclipse.jface.preference.IPreferencePageContainer#updateButtons()
public void setMessage(java.lang.String newMessage)
Shortcut for setMessage(newMessage, NONE)
newMessage
- the message, or null
to clear
the messagepublic void setMessage(java.lang.String newMessage, int newType)
The valid message types are one of NONE
,
INFORMATION
, WARNING
, or ERROR
.
Note that for backward compatibility, a message of type ERROR
is different than an error message (set using setErrorMessage
).
An error message overrides the current message until the error message is
cleared. This method replaces the current message and does not affect the
error message.
newMessage
- the message, or null
to clear
the messagenewType
- the message typepublic void updateMessage()
org.eclipse.jface.preference.IPreferencePageContainer#updateMessage()
public void updateTitle()
org.eclipse.jface.preference.IPreferencePageContainer#updateTitle()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |