public class ConfirmationDialog extends OptionsMessageDialog
DialogWrapper.CancelAction, DialogWrapper.DialogStyle, DialogWrapper.DialogWrapperAction, DialogWrapper.DialogWrapperExitAction, DialogWrapper.DoNotAskOption, DialogWrapper.IdeModalityType, DialogWrapper.OkAction
myProject
CANCEL_EXIT_CODE, CLOSE_EXIT_CODE, DEFAULT_ACTION, DIALOG_CONTENT_PANEL_PROPERTY, ERROR_FOREGROUND_COLOR, FOCUSED_ACTION, IS_VISUAL_PADDING_COMPENSATED_ON_COMPONENT_LEVEL_KEY, myCancelAction, myCheckBoxDoNotShowDialog, myDisposable, myHelpAction, myOKAction, myPerformAction, myPreferredFocusedComponent, NEXT_USER_EXIT_CODE, OK_EXIT_CODE
Constructor and Description |
---|
ConfirmationDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
VcsShowConfirmationOption option) |
ConfirmationDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
VcsShowConfirmationOption option,
java.lang.String okActionName,
java.lang.String cancelActionName) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getCancelActionName() |
protected java.lang.String |
getDoNotShowMessage() |
protected java.lang.String |
getOkActionName() |
protected boolean |
isToBeShown() |
static boolean |
requestForConfirmation(VcsShowConfirmationOption option,
Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon) |
static boolean |
requestForConfirmation(VcsShowConfirmationOption option,
Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String okActionName,
java.lang.String cancelActionName) |
void |
setDoNotShowAgainMessage(java.lang.String doNotShowAgainMessage) |
protected void |
setToBeShown(boolean value,
boolean onOk) |
protected boolean |
shouldSaveOptionsOnCancel() |
assignMnemonic, createActions, createCenterPanel, createNorthPanel
canBeHidden, shiftIsPressed
addKeyListener, addMouseListener, addMouseListener, canRecordDialogId, centerRelativeToParent, cleanupRootPane, cleanupWindowListeners, clickDefaultButton, close, close, createButtonsPanel, createCancelAction, createContentPane, createContentPaneBorder, createDefaultActions, createDefaultBorder, createDoNotAskCheckbox, createHelpButton, createJButtonForAction, createJButtonForAction, createLeftSideActions, createPeer, createPeer, createPeer, createPeer, createPeer, createPeer, createRootLayout, createSouthAdditionalPanel, createSouthPanel, createTitlePane, dispose, disposeIfNeeded, doCancelAction, doCancelAction, doHelpAction, doOKAction, doValidate, doValidateAll, extractMnemonic, findInstance, findInstanceFromFocus, getButton, getCancelAction, getContentPane, getContentPanel, getDimensionKey, getDimensionServiceKey, getDisposable, getErrorTextAlignment, getExitCode, getHelpAction, getHelpId, getHorizontalStretch, getInitialLocation, getLocation, getOKAction, getOwner, getPeer, getPreferredFocusedComponent, getPreferredSize, getRootPane, getSize, getStyle, getTitle, getTypeAheadTimeoutMs, getValidationThreadToUse, getVerticalStretch, getWindow, hasErrors, init, initValidation, isAutoAdjustable, isCenterStrictedToPreferredSize, isDisposed, isModal, isModalProgress, isMoveHelpButtonLeft, isNorthStrictedToPreferredSize, isOK, isOKActionEnabled, isProgressDialog, isResizable, isShowing, isSouthStrictedToPreferredSize, isToDispatchTypeAhead, isTypeAheadEnabled, isVisible, layoutButtonsPanel, pack, postponeValidation, processDoNotAskOnOk, repaint, setAutoAdjustable, setButtonsAlignment, setButtonsMargin, setCancelButtonIcon, setCancelButtonText, setCrossClosesWindow, setDoNotAskOption, setErrorInfoAll, setErrorText, setErrorText, setHelpTooltip, setHorizontalStretch, setInitialLocationCallback, setLocation, setLocation, setModal, setOKActionEnabled, setOKButtonIcon, setOKButtonMnemonic, setOKButtonText, setOKButtonTooltip, setResizable, setSize, setTitle, setUndecorated, setValidationDelay, setVerticalStretch, shouldAddErrorNearButtons, shouldCloseOnCross, show, showAndGet, showAndGetOk, startTrackingValidation, toBack, toBeShown, toFront, unregisterKeyboardActions, updateErrorInfo, validate
public ConfirmationDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon, VcsShowConfirmationOption option)
public ConfirmationDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon, VcsShowConfirmationOption option, java.lang.String okActionName, java.lang.String cancelActionName)
public static boolean requestForConfirmation(VcsShowConfirmationOption option, Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon)
public static boolean requestForConfirmation(VcsShowConfirmationOption option, Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon, java.lang.String okActionName, java.lang.String cancelActionName)
public void setDoNotShowAgainMessage(java.lang.String doNotShowAgainMessage)
protected java.lang.String getDoNotShowMessage()
getDoNotShowMessage
in class DialogWrapper
protected java.lang.String getOkActionName()
getOkActionName
in class OptionsMessageDialog
protected java.lang.String getCancelActionName()
getCancelActionName
in class OptionsMessageDialog
protected boolean isToBeShown()
isToBeShown
in class OptionsDialog
protected void setToBeShown(boolean value, boolean onOk)
setToBeShown
in class OptionsDialog
protected boolean shouldSaveOptionsOnCancel()
shouldSaveOptionsOnCancel
in class OptionsDialog