|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.jface.preference.PreferenceDialog
org.mailster.gui.prefs.ConfigurationDialog
public class ConfigurationDialog
Dialog to manage the application configuration on end-user
side.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
|---|
org.eclipse.jface.window.Window.IExceptionHandler |
| Field Summary | |
|---|---|
private org.eclipse.jface.preference.IPreferenceNode |
lastSuccessfulNode
The last successful IPreferenceNode visited |
private DialogMessageArea |
messageArea
The customized DialogMessageArea |
| Fields inherited from class org.eclipse.jface.preference.PreferenceDialog |
|---|
FAILED, PREF_DLG_IMG_TITLE_ERROR, PREF_DLG_TITLE_IMG |
| Fields inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS |
| Fields inherited from class org.eclipse.jface.window.Window |
|---|
CANCEL, OK |
| Constructor Summary | |
|---|---|
ConfigurationDialog(org.eclipse.swt.widgets.Shell parentShell,
org.eclipse.jface.preference.PreferenceManager manager)
Creates a new ConfigurationDialog under the control of the
given PreferenceManager. |
|
| Method Summary | |
|---|---|
protected void |
addListeners(org.eclipse.jface.viewers.TreeViewer viewer)
Add the listeners to the tree viewer. |
private void |
clearLastSelectedNode()
Clear the last selected node. |
void |
create()
|
protected void |
createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
Creates the buttons for the embedded hutton bar. |
private org.eclipse.swt.layout.FormData |
createMessageAreaData()
Create the layout data for the message area. |
private static void |
createPreferenceTree(org.eclipse.jface.preference.PreferenceManager mgr)
Creates the preference tree structure. |
protected org.eclipse.swt.widgets.Sash |
createSash(org.eclipse.swt.widgets.Composite composite,
org.eclipse.swt.widgets.Control leftControl)
Create the Sashwith left control on the left. |
protected org.eclipse.swt.widgets.Composite |
createTitleArea(org.eclipse.swt.widgets.Composite parent)
Creates the wizard's title area. |
protected void |
okPressed()
The preference dialog implementation of this Dialog
framework method sends performOk to all pages of the
preference dialog, then calls handleSave on this dialog to
save any state, and then calls close to close this dialog. |
static void |
run(org.eclipse.swt.widgets.Shell shell)
Creates and shows the configuration dialog. |
private void |
selectLastVisitedPageAgain()
Selects the page determined by lastSuccessfulNode in the
page hierarchy. |
void |
setErrorMessage(java.lang.String newErrorMessage)
Display the given error message. |
void |
setMessage(java.lang.String newMessage,
int newType)
Sets the message for this dialog with an indication of what type of message it is. |
protected boolean |
showPage(org.eclipse.jface.preference.IPreferenceNode node)
Shows the preference page corresponding to the given preference node. |
private void |
showPageFlippingAbortError()
Shows an error indicating that the status of the currently selected page is inavlid and has to be corrected. |
void |
updateButtons()
Updates the buttons. |
void |
updateMessage()
Updates the message. |
void |
updateTitle()
Updates the title. |
| Methods inherited from class org.eclipse.jface.preference.PreferenceDialog |
|---|
addPageChangedListener, buttonPressed, cancelPressed, close, configureShell, constrainShellSize, createContents, createDialogArea, createPage, createPageContainer, createPageControl, createTreeAreaContents, createTreeViewer, findNodeMatching, firePageChanged, getCurrentPage, getLastRightWidth, getPage, getPageContainer, getPageLayout, getPreferenceManager, getPreferenceStore, getSelectedNodePreference, getSelectedPage, getSingleSelection, getTreeViewer, handleSave, handleShellCloseEvent, helpPressed, isCurrentPageValid, isResizable, layoutTreeAreaControl, removePageChangedListener, selectSavedItem, setCurrentPage, setMessage, setMinimumPageSize, setMinimumPageSize, setPageContainer, setPreferenceStore, setSelectedNode, setSelectedNodePreference, setTreeViewer, update, updateTreeFont |
| Methods inherited from class org.eclipse.jface.dialogs.TrayDialog |
|---|
closeTray, createButtonBar, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable |
| Methods inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
applyDialogFont, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText |
| Methods inherited from class org.eclipse.jface.window.Window |
|---|
canHandleShellCloseEvent, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private DialogMessageArea messageArea
DialogMessageArea
private org.eclipse.jface.preference.IPreferenceNode lastSuccessfulNode
IPreferenceNode visited
| Constructor Detail |
|---|
public ConfigurationDialog(org.eclipse.swt.widgets.Shell parentShell,
org.eclipse.jface.preference.PreferenceManager manager)
ConfigurationDialog under the control of the
given PreferenceManager.
parentShell - the parent Shelllmanager - the PreferenceManager which controls this
ConfigurationDialog| Method Detail |
|---|
public void create()
create in class org.eclipse.jface.dialogs.Dialog
public void setMessage(java.lang.String newMessage,
int newType)
Sets the message for this dialog with an indication of what type of message it is.
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.
setMessage in class org.eclipse.jface.preference.PreferenceDialognewMessage - the message, or null to clear the
messagenewType - the message typePreferenceDialog.setMessage(String,
int)public void setErrorMessage(java.lang.String newErrorMessage)
null.
setErrorMessage in class org.eclipse.jface.preference.PreferenceDialognewErrorMessage - the errorMessage to display or nullpublic void updateMessage()
updateMessage in interface org.eclipse.jface.preference.IPreferencePageContainerupdateMessage in class org.eclipse.jface.preference.PreferenceDialogIPreferencePageContainer.updateMessage()public void updateTitle()
updateTitle in interface org.eclipse.jface.preference.IPreferencePageContainerupdateTitle in class org.eclipse.jface.preference.PreferenceDialogIPreferencePageContainer.updateTitle()public void updateButtons()
updateButtons in interface org.eclipse.jface.preference.IPreferencePageContainerupdateButtons in class org.eclipse.jface.preference.PreferenceDialogIPreferencePageContainer.updateButtons()protected void addListeners(org.eclipse.jface.viewers.TreeViewer viewer)
addListeners in class org.eclipse.jface.preference.PreferenceDialogviewer - protected void okPressed()
Dialog
framework method sends performOk to all pages of the
preference dialog, then calls handleSave on this dialog to
save any state, and then calls close to close this dialog.
okPressed in class org.eclipse.jface.preference.PreferenceDialogprotected org.eclipse.swt.widgets.Composite createTitleArea(org.eclipse.swt.widgets.Composite parent)
createTitleArea in class org.eclipse.jface.preference.PreferenceDialogparent - the SWT parent for the title area composite
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
createButtonsForButtonBar in class org.eclipse.jface.preference.PreferenceDialogDialog.createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)
protected org.eclipse.swt.widgets.Sash createSash(org.eclipse.swt.widgets.Composite composite,
org.eclipse.swt.widgets.Control leftControl)
Sashwith left control on the left. Note that
this method assumes GridData for the layout data of the
leftControl.
createSash in class org.eclipse.jface.preference.PreferenceDialogcomposite - the Composite to embed the
Sash intoleftControl - the Control at the left side of the
Sash
Sashprotected boolean showPage(org.eclipse.jface.preference.IPreferenceNode node)
showPage in class org.eclipse.jface.preference.PreferenceDialognode - the preference node, or null if none
true if the page flip was successful;
false if unsuccessfulprivate void selectLastVisitedPageAgain()
lastSuccessfulNode in the
page hierarchy.
private void clearLastSelectedNode()
private void showPageFlippingAbortError()
private org.eclipse.swt.layout.FormData createMessageAreaData()
public static void run(org.eclipse.swt.widgets.Shell shell)
shell - the shell to attach toprivate static void createPreferenceTree(org.eclipse.jface.preference.PreferenceManager mgr)
mgr - the PreferenceManager that the PreferenceNodes
should be embedded in
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||