public abstract class InlineOptionsDialog extends RefactoringDialog implements InlineOptions
DialogWrapper.CancelAction, DialogWrapper.DialogStyle, DialogWrapper.DialogWrapperAction, DialogWrapper.DialogWrapperExitAction, DialogWrapper.DoNotAskOption, DialogWrapper.IdeModalityType, DialogWrapper.OkAction
Modifier and Type | Field and Description |
---|---|
protected PsiElement |
myElement |
protected boolean |
myInvokedOnReference |
protected javax.swing.JRadioButton |
myKeepTheDeclaration |
protected javax.swing.JRadioButton |
myRbInlineAll |
protected javax.swing.JRadioButton |
myRbInlineThisOnly |
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 |
InlineOptionsDialog(Project project,
boolean canBeParent,
PsiElement element) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowInlineAll() |
protected boolean |
canInlineThisOnly() |
protected javax.swing.JComponent |
createCenterPanel()
Factory method.
|
protected javax.swing.JComponent |
createNorthPanel()
Factory method.
|
protected abstract java.lang.String |
getBorderTitle() |
protected abstract java.lang.String |
getInlineAllText() |
protected abstract java.lang.String |
getInlineThisText() |
protected java.lang.String |
getKeepTheDeclarationText() |
protected abstract java.lang.String |
getNameLabelText() |
protected int |
getNumberOfOccurrences(PsiNameIdentifierOwner nameIdentifierOwner) |
javax.swing.JComponent |
getPreferredFocusedComponent() |
protected boolean |
ignoreOccurrence(PsiReference reference) |
protected static int |
initOccurrencesNumber(PsiNameIdentifierOwner nameIdentifierOwner) |
protected abstract boolean |
isInlineThis() |
boolean |
isInlineThisOnly() |
boolean |
isKeepTheDeclaration() |
addOpenInEditorCheckbox, areButtonsValid, canRun, closeOKAction, createActions, createDefaultActions, doAction, doOKAction, doRefactorAction, getPreviewAction, getProject, getRefactorAction, getRefactoringId, hasHelpAction, hasPreviewButton, invokeRefactoring, isOpenInEditor, isPreviewUsages, setHelpTooltip, setPreviewResults, show, validateButtons
addKeyListener, addMouseListener, addMouseListener, canRecordDialogId, centerRelativeToParent, cleanupRootPane, cleanupWindowListeners, clickDefaultButton, close, close, createButtonsPanel, createCancelAction, createContentPane, createContentPaneBorder, createDefaultBorder, createDoNotAskCheckbox, createHelpButton, createJButtonForAction, createJButtonForAction, createLeftSideActions, 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, 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, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, isPreviewUsages
protected javax.swing.JRadioButton myRbInlineAll
protected javax.swing.JRadioButton myKeepTheDeclaration
protected javax.swing.JRadioButton myRbInlineThisOnly
protected boolean myInvokedOnReference
protected final PsiElement myElement
protected InlineOptionsDialog(Project project, boolean canBeParent, PsiElement element)
protected javax.swing.JComponent createNorthPanel()
DialogWrapper
null
value. In this case there will be no input panel.createNorthPanel
in class DialogWrapper
public boolean isInlineThisOnly()
isInlineThisOnly
in interface InlineOptions
public boolean isKeepTheDeclaration()
isKeepTheDeclaration
in interface InlineOptions
protected javax.swing.JComponent createCenterPanel()
DialogWrapper
null
value. In this case there will be no options panel.createCenterPanel
in class DialogWrapper
protected boolean allowInlineAll()
protected abstract java.lang.String getNameLabelText()
protected abstract java.lang.String getBorderTitle()
protected abstract java.lang.String getInlineAllText()
protected java.lang.String getKeepTheDeclarationText()
protected abstract java.lang.String getInlineThisText()
protected abstract boolean isInlineThis()
protected boolean canInlineThisOnly()
public javax.swing.JComponent getPreferredFocusedComponent()
getPreferredFocusedComponent
in class DialogWrapper
protected boolean ignoreOccurrence(PsiReference reference)
protected static int initOccurrencesNumber(PsiNameIdentifierOwner nameIdentifierOwner)
protected int getNumberOfOccurrences(PsiNameIdentifierOwner nameIdentifierOwner)