public abstract class RefactoringDialog extends DialogWrapper
DialogWrapper.CancelAction, DialogWrapper.DialogStyle, DialogWrapper.DialogWrapperAction, DialogWrapper.DialogWrapperExitAction, DialogWrapper.DoNotAskOption, DialogWrapper.IdeModalityType, DialogWrapper.OkAction| Modifier and Type | Field and Description |
|---|---|
protected Project |
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| Modifier | Constructor and Description |
|---|---|
protected |
RefactoringDialog(Project project,
boolean canBeParent) |
protected |
RefactoringDialog(Project project,
boolean canBeParent,
boolean addOpenInEditorCheckbox) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOpenInEditorCheckbox()
Must be called before
DialogWrapper.init(). |
protected boolean |
areButtonsValid() |
protected void |
canRun() |
protected void |
closeOKAction() |
protected javax.swing.Action [] |
createActions()
Creates actions for dialog.
|
protected void |
createDefaultActions() |
protected abstract void |
doAction() |
protected void |
doOKAction()
This method is invoked by default implementation of "OK" action.
|
protected void |
doRefactorAction() |
protected javax.swing.Action |
getPreviewAction() |
protected Project |
getProject() |
protected javax.swing.Action |
getRefactorAction() |
protected java.lang.String |
getRefactoringId() |
protected boolean |
hasHelpAction() |
protected boolean |
hasPreviewButton() |
protected void |
invokeRefactoring(BaseRefactoringProcessor processor) |
boolean |
isOpenInEditor() |
boolean |
isPreviewUsages() |
protected void |
setHelpTooltip(javax.swing.JButton helpButton) |
void |
setPreviewResults(boolean previewResults) |
void |
show()
Show the dialog.
|
protected void |
validateButtons() |
addKeyListener, addMouseListener, addMouseListener, canRecordDialogId, centerRelativeToParent, cleanupRootPane, cleanupWindowListeners, clickDefaultButton, close, close, createButtonsPanel, createCancelAction, createCenterPanel, createContentPane, createContentPaneBorder, createDefaultBorder, createDoNotAskCheckbox, createHelpButton, createJButtonForAction, createJButtonForAction, createLeftSideActions, createNorthPanel, createPeer, createPeer, createPeer, createPeer, createPeer, createPeer, createRootLayout, createSouthAdditionalPanel, createSouthPanel, createTitlePane, dispose, disposeIfNeeded, doCancelAction, doCancelAction, doHelpAction, doValidate, doValidateAll, extractMnemonic, findInstance, findInstanceFromFocus, getButton, getCancelAction, getContentPane, getContentPanel, getDimensionKey, getDimensionServiceKey, getDisposable, getDoNotShowMessage, 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, setHorizontalStretch, setInitialLocationCallback, setLocation, setLocation, setModal, setOKActionEnabled, setOKButtonIcon, setOKButtonMnemonic, setOKButtonText, setOKButtonTooltip, setResizable, setSize, setTitle, setUndecorated, setValidationDelay, setVerticalStretch, shouldAddErrorNearButtons, shouldCloseOnCross, showAndGet, showAndGetOk, startTrackingValidation, toBack, toBeShown, toFront, unregisterKeyboardActions, updateErrorInfo, validateprotected final Project myProject
protected RefactoringDialog(Project project, boolean canBeParent)
protected RefactoringDialog(Project project, boolean canBeParent, boolean addOpenInEditorCheckbox)
protected void addOpenInEditorCheckbox()
DialogWrapper.init().protected java.lang.String getRefactoringId()
public boolean isOpenInEditor()
public final boolean isPreviewUsages()
public void setPreviewResults(boolean previewResults)
public void show()
DialogWrappershow in class DialogWrapperDialogWrapper.showAndGet()protected void createDefaultActions()
createDefaultActions in class DialogWrapperprotected final javax.swing.Action getRefactorAction()
protected final javax.swing.Action getPreviewAction()
protected abstract void doAction()
protected void doRefactorAction()
protected final void closeOKAction()
protected final void doOKAction()
DialogWrapperOK_EXIT_CODE. This is convenient place to override functionality of "OK" action.
Note that the method does nothing if "OK" action isn't enabled.doOKAction in class DialogWrapperprotected boolean areButtonsValid()
protected void canRun()
throws ConfigurationException
ConfigurationExceptionprotected void setHelpTooltip(javax.swing.JButton helpButton)
setHelpTooltip in class DialogWrapperprotected void validateButtons()
protected boolean hasHelpAction()
protected boolean hasPreviewButton()
protected javax.swing.Action [] createActions()
DialogWrapperDialogWrapper.getHelpId() returns non-null value.
Each action is represented by JButton created by DialogWrapper.createJButtonForAction(Action).
These buttons are then placed into south panel of dialog.createActions in class DialogWrapperDialogWrapper.createSouthPanel(),
DialogWrapper.createJButtonForAction(javax.swing.Action)protected Project getProject()
protected void invokeRefactoring(BaseRefactoringProcessor processor)