public class OverwriteDialog extends MessageDialog
mayContinue(ImportModel, IProgressMonitor)
as an entry point to this
class.Modifier and Type | Class and Description |
---|---|
protected static class |
OverwriteDialog.OverwriteEntry |
Window.IExceptionHandler
CONFIRM, ERROR, INFORMATION, NONE, QUESTION, QUESTION_WITH_CANCEL, WARNING
imageLabel, message, messageLabel
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
CANCEL, OK, resizeHasOccurred
Modifier | Constructor and Description |
---|---|
protected |
OverwriteDialog(Shell parentShell,
OverwriteDialog.OverwriteEntry[] entries) |
Modifier and Type | Method and Description |
---|---|
protected Control |
createCustomArea(Composite parent) |
static boolean |
mayContinue(ImportModel model,
IProgressMonitor monitor)
Check (including user query) whether the export would overwrite some
files the user wants to keep.
|
buttonPressed, configureShell, createButton, createButtonsForButtonBar, createDialogArea, customShouldTakeFocus, getButton, getButtonLabels, getDefaultButtonIndex, getImage, getMinimumMessageWidth, handleShellCloseEvent, open, open, openConfirm, openError, openInformation, openQuestion, openWarning, setButtonLabels, setButtons
createButtonBar, createContents, createDialogAndButtonArea, createMessageArea, getErrorImage, getInfoImage, getMessageLabelStyle, getQuestionImage, getWarningImage
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, dialogFontIsDefault, getBlockedHandler, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
protected OverwriteDialog(Shell parentShell, OverwriteDialog.OverwriteEntry[] entries)
protected Control createCustomArea(Composite parent)
createCustomArea
in class MessageDialog
public static boolean mayContinue(ImportModel model, IProgressMonitor monitor)
model
- The configured model which is to be checkedmonitor
- a progress monitor for reporting progress (during the check),
may be null
if no progress reporting is requiredtrue
, if none of the files already exists or if the
user explicitly allows overwriting. false
if the
user does not allow overwriting or if the check has been
cancelled using the progress monitor.