Class YesNoCancelListSelectionDialog
- All Implemented Interfaces:
IShellProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class ListSelectionDialog
ListSelectionDialog.BuilderNested classes/interfaces inherited from class Window
Window.IExceptionHandler -
Field Summary
Fields inherited from class 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 Window
CANCEL, OK, resizeHasOccurred -
Constructor Summary
ConstructorsConstructorDescriptionYesNoCancelListSelectionDialog(Shell parentShell, Object input, IStructuredContentProvider contentProvider, ILabelProvider labelProvider, String message) Deprecated.see class comment -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuttonPressed(int buttonId) Deprecated.protected voidconfigureShell(Shell shell) Deprecated.protected voidcreateButtonsForButtonBar(Composite parent) Deprecated.protected voidDeprecated.protected voidDeprecated.Methods inherited from class ListSelectionDialog
createContents, createDialogArea, getCheckboxValue, getViewer, of, okPressedMethods inherited from class SelectionDialog
createMessageArea, getDialogBoundsSettings, getDialogBoundsStrategy, getInitialElementSelections, getInitialSelections, getMessage, getOkButton, getResult, isResizable, setDialogBoundsSettings, setInitialElementSelections, setInitialSelections, setMessage, setResult, setSelectionResult, setTitleMethods inherited from class TrayDialog
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailableMethods inherited from class Dialog
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenTextMethods inherited from class Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Constructor Details
-
YesNoCancelListSelectionDialog
@Deprecated public YesNoCancelListSelectionDialog(Shell parentShell, Object input, IStructuredContentProvider contentProvider, ILabelProvider labelProvider, String message) Deprecated.see class commentCreate a list selection dialog with a possible Yes/No or Cancel result.- Parameters:
parentShell- the parent shellinput- the root element to populate this dialog withcontentProvider- the content provider for navigating the modellabelProvider- the label provider for displaying model elementsmessage- the message to be displayed at the top of this dialog, ornullto display a default message
-
-
Method Details
-
buttonPressed
Deprecated.Description copied from class:DialogNotifies that this dialog's button with the given id has been pressed.The
Dialogimplementation of this framework method callsokPressedif the ok button is the pressed, andcancelPressedif the cancel button is the pressed. All other button presses are ignored. Subclasses may override to handle other buttons, but should callsuper.buttonPressedif the default handling of the ok and cancel buttons is desired.- Overrides:
buttonPressedin classDialog- Parameters:
buttonId- the id of the button that was pressed (seeIDialogConstants.*_IDconstants)
-
configureShell
Deprecated.Description copied from class:WindowConfigures the given shell in preparation for opening this window in it.The default implementation of this framework method sets the shell's image and gives it a grid layout. Subclasses may extend or reimplement.
- Overrides:
configureShellin classListSelectionDialog- Parameters:
shell- the shell
-
createButtonsForButtonBar
Deprecated.Description copied from class:DialogAdds buttons to this dialog's button bar.The
Dialogimplementation of this framework method adds standard ok and cancel buttons using thecreateButtonframework method. These standard buttons will be accessible fromgetCancelButton, andgetOKButton. Subclasses may override.Note: The common button order is: {other buttons}, OK, Cancel. On some platforms,
Dialog.initializeBounds()will move the default button to the right.- Overrides:
createButtonsForButtonBarin classListSelectionDialog- Parameters:
parent- the button bar composite
-
noPressed
Deprecated.Notifies that the no button of this dialog has been pressed.The
Dialogimplementation of this framework method sets this dialog's return code toIDialogConstants.NO_IDand closes the dialog. Subclasses may override if desired. -
yesPressed
Deprecated.Notifies that the yes button of this dialog has been pressed. Do the same as an OK but set the return code to YES_ID instead.
-