Package org.yamcs.studio.core.utils
Class ViewerSettingsAndStatusDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.ui.preferences.ViewSettingsDialog
org.yamcs.studio.core.utils.ViewerSettingsAndStatusDialog
- All Implemented Interfaces:
IShellProvider
- Direct Known Subclasses:
ViewerColumnsDialog
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler
-
Field Summary
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, resizeHasOccurred
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureShell
(Shell newShell) protected Control
createDialogArea
(Composite parent) protected abstract Control
createDialogContentArea
(Composite dialogArea) protected String
Return the message to display when dialog is opened.protected Image
protected String
protected Image
protected Point
protected Color
Return the Color to display when dialog is opened.protected Image
protected String
protected int
protected Image
protected void
handleMessageAreaVisibility
(boolean visible) protected void
handleStatusUdpate
(int severity, String messgage) Display the message and an appropriate icon.protected void
handleStatusUdpate
(IStatus status) Display the message and an appropriate icon.protected void
protected boolean
protected void
protected void
protected void
setMessageImage
(Image image) protected void
setMessageText
(String messgage) Methods inherited from class org.eclipse.ui.preferences.ViewSettingsDialog
buttonPressed, createButtonsForButtonBar
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, 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, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Constructor Details
-
ViewerSettingsAndStatusDialog
-
-
Method Details
-
configureShell
- Overrides:
configureShell
in classWindow
-
getShellStyle
protected int getShellStyle()- Overrides:
getShellStyle
in classWindow
-
getInitialSize
- Overrides:
getInitialSize
in classDialog
-
createDialogArea
- Overrides:
createDialogArea
in classDialog
-
createDialogContentArea
-
initializeDialog
protected void initializeDialog() -
handleStatusUdpate
Display the message and an appropriate icon. -
handleStatusUdpate
Display the message and an appropriate icon. -
setMessageImage
-
setMessageText
-
getMessageImage
-
getMessageText
-
handleMessageAreaVisibility
protected void handleMessageAreaVisibility(boolean visible) -
getMessageBackground
Return the Color to display when dialog is opened. -
getDefaultMessage
Return the message to display when dialog is opened. -
getErrorMessage
- Returns:
- Returns the error message to display for a wrong limit value.
-
getInfoImage
-
getWarningImage
-
getErrorImage
-
performDefaults
protected void performDefaults()- Overrides:
performDefaults
in classViewSettingsDialog
-
isResizable
protected boolean isResizable()- Overrides:
isResizable
in classDialog
-
okPressed
protected void okPressed()
-