de.cau.cs.kieler.kwebs.client.ui
Class NewServerConfigDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
de.cau.cs.kieler.kwebs.client.ui.AbstractServerConfigDialog
de.cau.cs.kieler.kwebs.client.ui.NewServerConfigDialog
- All Implemented Interfaces:
- IShellProvider
public class NewServerConfigDialog
- extends AbstractServerConfigDialog
Dialog for adding a new provider.
- Rating

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 |
Method Summary |
protected void |
configureShell(Shell shell)
|
protected void |
handleServerConfigUpdate(ServerConfigData updatedServerConfig)
To be implemented by inherited classes to handle the server configuration data
edited in this dialog. |
protected boolean |
warningOnDouble(ServerConfigData theserverConfig)
Returns whether a warning should be displayed if an equal server configuration already
exists in the server configuration list. |
protected boolean |
warningOnInvalid(ServerConfigData theserverConfig)
Returns whether a warning should be displayed if the current configuration
resembles an invalid server configuration. |
Methods inherited from class org.eclipse.jface.dialogs.Dialog |
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText |
Methods inherited from class org.eclipse.jface.window.Window |
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, 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 |
NewServerConfigDialog
public NewServerConfigDialog(Shell shell)
- Creates a dialog for adding a new server configuration.
- Parameters:
shell
- the parent shell
configureShell
protected final void configureShell(Shell shell)
-
- Overrides:
configureShell
in class Window
handleServerConfigUpdate
protected void handleServerConfigUpdate(ServerConfigData updatedServerConfig)
- To be implemented by inherited classes to handle the server configuration data
edited in this dialog. This may be updating an existing server configuration or creating a new
server configuration.
- Specified by:
handleServerConfigUpdate
in class AbstractServerConfigDialog
- Parameters:
updatedServerConfig
- the server configuration to handle
warningOnDouble
protected boolean warningOnDouble(ServerConfigData theserverConfig)
- Returns whether a warning should be displayed if an equal server configuration already
exists in the server configuration list.
- Specified by:
warningOnDouble
in class AbstractServerConfigDialog
- Parameters:
theserverConfig
- the server configuration which is equal to the server configuration resembled by the
currently entered server configuration data
- Returns:
- whether a warning should be displayed if an equal server configuration already
exists in the server configuration list
warningOnInvalid
protected boolean warningOnInvalid(ServerConfigData theserverConfig)
- Returns whether a warning should be displayed if the current configuration
resembles an invalid server configuration.
- Specified by:
warningOnInvalid
in class AbstractServerConfigDialog
- Parameters:
theserverConfig
- the server configuration resembling the currently entered server configuration data
- Returns:
- whether a warning should be displayed if the current configuration
resembles an invalid server configuration