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, ELLIPSISFields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureShell(Shell newShell) protected ControlcreateDialogArea(Composite parent) protected abstract ControlcreateDialogContentArea(Composite dialogArea) protected StringReturn the message to display when dialog is opened.protected Imageprotected Stringprotected Imageprotected Pointprotected ColorReturn the Color to display when dialog is opened.protected Imageprotected Stringprotected intprotected Imageprotected voidhandleMessageAreaVisibility(boolean visible) protected voidhandleStatusUdpate(int severity, String messgage) Display the message and an appropriate icon.protected voidhandleStatusUdpate(IStatus status) Display the message and an appropriate icon.protected voidprotected booleanprotected voidprotected voidprotected voidsetMessageImage(Image image) protected voidsetMessageText(String messgage) Methods inherited from class org.eclipse.ui.preferences.ViewSettingsDialog
buttonPressed, createButtonsForButtonBarMethods 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, shortenTextMethods 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:
configureShellin classWindow
-
getShellStyle
protected int getShellStyle()- Overrides:
getShellStylein classWindow
-
getInitialSize
- Overrides:
getInitialSizein classDialog
-
createDialogArea
- Overrides:
createDialogAreain 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:
performDefaultsin classViewSettingsDialog
-
isResizable
protected boolean isResizable()- Overrides:
isResizablein classDialog
-
okPressed
protected void okPressed()
-