public class JavaChangeSignatureDialog extends ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
ChangeSignatureDialogBase.ParametersListTable, ChangeSignatureDialogBase.UpdateSignatureListener
DialogWrapper.CancelAction, DialogWrapper.DialogStyle, DialogWrapper.DialogWrapperAction, DialogWrapper.DialogWrapperExitAction, DialogWrapper.DoNotAskOption, DialogWrapper.IdeModalityType, DialogWrapper.OkAction
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<PsiMethod> |
myMethodsToPropagateExceptions |
EXIT_SILENTLY, myDefaultValueContext, myMethod, myMethodsToPropagateParameters, myNameField, myNamePanel, myParametersList, myParametersTable, myParametersTableModel, myPropagateParamChangesButton, myReturnTypeCodeFragment, myReturnTypeField, mySignatureUpdater, myVisibilityPanel
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 |
JavaChangeSignatureDialog(Project project,
JavaMethodDescriptor descriptor,
boolean allowDelegation,
PsiElement context) |
|
JavaChangeSignatureDialog(Project project,
PsiMethod method,
boolean allowDelegation,
PsiElement context) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
calculateSignature() |
protected java.util.List<Pair<java.lang.String,javax.swing.JPanel>> |
createAdditionalPanels() |
static JavaChangeSignatureDialog |
createAndPreselectNew(Project project,
PsiMethod method,
java.util.List<? extends ParameterInfoImpl> parameterInfos,
boolean allowDelegation,
PsiReferenceExpression refExpr) |
static JavaChangeSignatureDialog |
createAndPreselectNew(Project project,
PsiMethod method,
java.util.List<? extends ParameterInfoImpl> parameterInfos,
boolean allowDelegation,
PsiReferenceExpression refExpr,
Consumer<? super java.util.List<ParameterInfoImpl>> callback) |
protected CallerChooserBase<PsiMethod> |
createCallerChooser(java.lang.String title,
Tree treeToReuse,
Consumer<java.util.Set<PsiMethod>> callback) |
protected javax.swing.JComponent |
createCenterPanel()
Factory method.
|
protected JavaParameterTableModel |
createParametersInfoModel(JavaMethodDescriptor descriptor) |
protected ChangeSignatureDialogBase.ParametersListTable |
createParametersListTable() |
protected BaseRefactoringProcessor |
createRefactoringProcessor() |
protected PsiCodeFragment |
createReturnTypeCodeFragment() |
protected VisibilityPanelBase<java.lang.String> |
createVisibilityControl() |
protected void |
customizeParametersTable(TableView<ParameterTableModelItemBase<ParameterInfoImpl>> table) |
protected java.lang.String |
doCalculateSignature(PsiMethod method) |
protected ValidationInfo |
doValidate()
Validates user input and returns
null if everything is fine
or validation description with component where problem has been found. |
protected ThrownExceptionInfo[] |
getExceptions() |
protected LanguageFileType |
getFileType() |
protected CanonicalTypes.Type |
getReturnType() |
protected java.lang.String |
getVisibility() |
protected void |
invokeRefactoring(BaseRefactoringProcessor processor) |
protected boolean |
isListTableViewSupported() |
protected boolean |
mayPropagateExceptions() |
protected boolean |
postponeValidation()
Allows to postpone first start of validation
|
protected void |
updatePropagateButtons() |
protected java.lang.String |
validateAndCommitData() |
createNorthPanel, createOptionsPanel, createParametersPanel, createReturnTypeTextField, createSignaturePreviewComponent, createVisibilityPanel, doAction, getDimensionServiceKey, getHelpId, getMethodName, getParameters, getPreferredFocusedComponent, getRowPresentation, getSelectedIdx, getTableComponent, getTableEditor, isEmptyRow, isGenerateDelegate, mayPropagateParameters, placeReturnTypeBeforeName, setParameterInfos, updateSignature, updateSignatureAlarmFired
addOpenInEditorCheckbox, areButtonsValid, canRun, closeOKAction, createActions, createDefaultActions, doOKAction, doRefactorAction, getPreviewAction, getProject, getRefactorAction, getRefactoringId, hasHelpAction, hasPreviewButton, 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, doValidateAll, extractMnemonic, findInstance, findInstanceFromFocus, getButton, getCancelAction, getContentPane, getContentPanel, getDimensionKey, getDisposable, getDoNotShowMessage, getErrorTextAlignment, getExitCode, getHelpAction, 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, 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
protected java.util.Set<PsiMethod> myMethodsToPropagateExceptions
public JavaChangeSignatureDialog(Project project, PsiMethod method, boolean allowDelegation, PsiElement context)
protected JavaChangeSignatureDialog(Project project, JavaMethodDescriptor descriptor, boolean allowDelegation, PsiElement context)
public static JavaChangeSignatureDialog createAndPreselectNew(Project project, PsiMethod method, java.util.List<? extends ParameterInfoImpl> parameterInfos, boolean allowDelegation, PsiReferenceExpression refExpr)
public static JavaChangeSignatureDialog createAndPreselectNew(Project project, PsiMethod method, java.util.List<? extends ParameterInfoImpl> parameterInfos, boolean allowDelegation, PsiReferenceExpression refExpr, Consumer<? super java.util.List<ParameterInfoImpl>> callback)
protected java.lang.String getVisibility()
getVisibility
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected VisibilityPanelBase<java.lang.String> createVisibilityControl()
createVisibilityControl
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected javax.swing.JComponent createCenterPanel()
DialogWrapper
null
value. In this case there will be no options panel.createCenterPanel
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected void updatePropagateButtons()
updatePropagateButtons
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected boolean mayPropagateExceptions()
protected java.util.List<Pair<java.lang.String,javax.swing.JPanel>> createAdditionalPanels()
createAdditionalPanels
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected LanguageFileType getFileType()
getFileType
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected JavaParameterTableModel createParametersInfoModel(JavaMethodDescriptor descriptor)
createParametersInfoModel
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected boolean isListTableViewSupported()
isListTableViewSupported
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected ChangeSignatureDialogBase.ParametersListTable createParametersListTable()
createParametersListTable
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected void customizeParametersTable(TableView<ParameterTableModelItemBase<ParameterInfoImpl>> table)
customizeParametersTable
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected void invokeRefactoring(BaseRefactoringProcessor processor)
invokeRefactoring
in class RefactoringDialog
protected BaseRefactoringProcessor createRefactoringProcessor()
createRefactoringProcessor
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected CanonicalTypes.Type getReturnType()
protected ThrownExceptionInfo[] getExceptions()
protected PsiCodeFragment createReturnTypeCodeFragment()
createReturnTypeCodeFragment
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected CallerChooserBase<PsiMethod> createCallerChooser(java.lang.String title, Tree treeToReuse, Consumer<java.util.Set<PsiMethod>> callback)
createCallerChooser
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected java.lang.String validateAndCommitData()
validateAndCommitData
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected ValidationInfo doValidate()
DialogWrapper
null
if everything is fine
or validation description with component where problem has been found.doValidate
in class DialogWrapper
null
if everything is OK or validation descriptorprotected boolean postponeValidation()
DialogWrapper
postponeValidation
in class DialogWrapper
false
if start validation in init()
methodprotected java.lang.String calculateSignature()
calculateSignature
in class ChangeSignatureDialogBase<ParameterInfoImpl,PsiMethod,java.lang.String,JavaMethodDescriptor,ParameterTableModelItemBase<ParameterInfoImpl>,JavaParameterTableModel>
protected java.lang.String doCalculateSignature(PsiMethod method)