public abstract class ChangeSignatureDialogBase<ParamInfo extends ParameterInfo,Method extends PsiElement,Visibility,Descriptor extends MethodDescriptor<ParamInfo,Visibility>,ParameterTableModelItem extends ParameterTableModelItemBase<ParamInfo>,ParameterTableModel extends ParameterTableModelBase<ParamInfo,ParameterTableModelItem>> extends RefactoringDialog
Modifier and Type | Class and Description |
---|---|
protected class |
ChangeSignatureDialogBase.ParametersListTable |
protected class |
ChangeSignatureDialogBase.UpdateSignatureListener |
DialogWrapper.CancelAction, DialogWrapper.DialogStyle, DialogWrapper.DialogWrapperAction, DialogWrapper.DialogWrapperExitAction, DialogWrapper.DoNotAskOption, DialogWrapper.IdeModalityType, DialogWrapper.OkAction
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
EXIT_SILENTLY |
protected PsiElement |
myDefaultValueContext |
protected Descriptor |
myMethod |
protected java.util.Set<Method> |
myMethodsToPropagateParameters |
protected EditorTextField |
myNameField |
protected javax.swing.JPanel |
myNamePanel |
protected JBListTable |
myParametersList |
protected TableView<ParameterTableModelItem> |
myParametersTable |
protected ParameterTableModel |
myParametersTableModel |
protected AnActionButton |
myPropagateParamChangesButton |
protected PsiCodeFragment |
myReturnTypeCodeFragment |
protected EditorTextField |
myReturnTypeField |
protected ChangeSignatureDialogBase.UpdateSignatureListener |
mySignatureUpdater |
protected VisibilityPanelBase<Visibility> |
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
Constructor and Description |
---|
ChangeSignatureDialogBase(Project project,
Descriptor method,
boolean allowDelegation,
PsiElement defaultValueContext) |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
calculateSignature() |
protected java.util.List<Pair<java.lang.String,javax.swing.JPanel>> |
createAdditionalPanels() |
protected abstract CallerChooserBase<Method> |
createCallerChooser(java.lang.String title,
Tree treeToReuse,
Consumer<java.util.Set<Method>> callback) |
protected javax.swing.JComponent |
createCenterPanel()
Factory method.
|
protected javax.swing.JComponent |
createNorthPanel()
Factory method.
|
protected javax.swing.JComponent |
createOptionsPanel() |
protected abstract ParameterTableModel |
createParametersInfoModel(Descriptor method) |
protected ChangeSignatureDialogBase.ParametersListTable |
createParametersListTable() |
protected javax.swing.JPanel |
createParametersPanel(boolean hasTabsInDialog) |
protected abstract BaseRefactoringProcessor |
createRefactoringProcessor() |
protected abstract PsiCodeFragment |
createReturnTypeCodeFragment() |
protected EditorTextField |
createReturnTypeTextField(Document document) |
protected MethodSignatureComponent |
createSignaturePreviewComponent() |
protected abstract VisibilityPanelBase<Visibility> |
createVisibilityControl() |
protected javax.swing.JPanel |
createVisibilityPanel() |
protected void |
customizeParametersTable(TableView<ParameterTableModelItem> table) |
protected void |
doAction() |
protected java.lang.String |
getDimensionServiceKey()
Returns key for persisting dialog dimensions.
|
protected abstract LanguageFileType |
getFileType() |
protected java.lang.String |
getHelpId()
Returns the help identifier, or
null if no help is available. |
protected java.lang.String |
getMethodName() |
java.util.List<ParamInfo> |
getParameters() |
javax.swing.JComponent |
getPreferredFocusedComponent() |
protected javax.swing.JComponent |
getRowPresentation(ParameterTableModelItemBase<ParamInfo> item,
boolean selected,
boolean focused)
Deprecated.
override
createParametersListTable() instead. |
protected int |
getSelectedIdx() |
protected JBTable |
getTableComponent() |
protected JBTableRowEditor |
getTableEditor(javax.swing.JTable table,
ParameterTableModelItemBase<ParamInfo> item)
Deprecated.
override
createParametersListTable() instead. |
protected Visibility |
getVisibility() |
protected boolean |
isEmptyRow(ParameterTableModelItemBase<ParamInfo> row)
Deprecated.
override
createParametersListTable() instead. |
boolean |
isGenerateDelegate() |
protected boolean |
isListTableViewSupported() |
protected boolean |
mayPropagateParameters() |
boolean |
placeReturnTypeBeforeName() |
void |
setParameterInfos(java.util.List<? extends ParamInfo> parameterInfos) |
protected void |
updatePropagateButtons() |
protected void |
updateSignature() |
protected void |
updateSignatureAlarmFired() |
protected abstract java.lang.String |
validateAndCommitData() |
addOpenInEditorCheckbox, areButtonsValid, canRun, closeOKAction, createActions, createDefaultActions, 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, 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, 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
protected static final java.lang.String EXIT_SILENTLY
protected final Descriptor extends MethodDescriptor<ParamInfo,Visibility> myMethod
protected javax.swing.JPanel myNamePanel
protected EditorTextField myNameField
protected EditorTextField myReturnTypeField
protected JBListTable myParametersList
protected TableView<ParameterTableModelItem extends ParameterTableModelItemBase<ParamInfo>> myParametersTable
protected final ParameterTableModel extends ParameterTableModelBase<ParamInfo,ParameterTableModelItem> myParametersTableModel
protected final ChangeSignatureDialogBase.UpdateSignatureListener mySignatureUpdater
protected VisibilityPanelBase<Visibility> myVisibilityPanel
protected PsiCodeFragment myReturnTypeCodeFragment
protected AnActionButton myPropagateParamChangesButton
protected java.util.Set<Method extends PsiElement> myMethodsToPropagateParameters
protected final PsiElement myDefaultValueContext
public ChangeSignatureDialogBase(Project project, Descriptor method, boolean allowDelegation, PsiElement defaultValueContext)
protected abstract LanguageFileType getFileType()
protected abstract ParameterTableModel createParametersInfoModel(Descriptor method)
protected abstract BaseRefactoringProcessor createRefactoringProcessor()
protected abstract PsiCodeFragment createReturnTypeCodeFragment()
protected abstract CallerChooserBase<Method> createCallerChooser(java.lang.String title, Tree treeToReuse, Consumer<java.util.Set<Method>> callback)
protected abstract java.lang.String validateAndCommitData()
protected abstract java.lang.String calculateSignature()
protected abstract VisibilityPanelBase<Visibility> createVisibilityControl()
public void setParameterInfos(java.util.List<? extends ParamInfo> parameterInfos)
protected java.lang.String getMethodName()
protected Visibility getVisibility()
public java.util.List<ParamInfo> getParameters()
public boolean isGenerateDelegate()
public javax.swing.JComponent getPreferredFocusedComponent()
getPreferredFocusedComponent
in class DialogWrapper
protected int getSelectedIdx()
protected JBTable getTableComponent()
public boolean placeReturnTypeBeforeName()
protected javax.swing.JComponent createNorthPanel()
DialogWrapper
null
value. In this case there will be no input panel.createNorthPanel
in class DialogWrapper
protected EditorTextField createReturnTypeTextField(Document document)
protected javax.swing.JComponent createCenterPanel()
DialogWrapper
null
value. In this case there will be no options panel.createCenterPanel
in class DialogWrapper
protected javax.swing.JComponent createOptionsPanel()
protected javax.swing.JPanel createVisibilityPanel()
protected java.util.List<Pair<java.lang.String,javax.swing.JPanel>> createAdditionalPanels()
protected java.lang.String getDimensionServiceKey()
DialogWrapper
null
(no persisting).getDimensionServiceKey
in class DialogWrapper
protected boolean isListTableViewSupported()
protected javax.swing.JPanel createParametersPanel(boolean hasTabsInDialog)
protected ChangeSignatureDialogBase.ParametersListTable createParametersListTable()
@Deprecated protected JBTableRowEditor getTableEditor(javax.swing.JTable table, ParameterTableModelItemBase<ParamInfo> item)
createParametersListTable()
instead.@Deprecated protected boolean isEmptyRow(ParameterTableModelItemBase<ParamInfo> row)
createParametersListTable()
instead.@Deprecated protected javax.swing.JComponent getRowPresentation(ParameterTableModelItemBase<ParamInfo> item, boolean selected, boolean focused)
createParametersListTable()
instead.protected void customizeParametersTable(TableView<ParameterTableModelItem> table)
protected MethodSignatureComponent createSignaturePreviewComponent()
protected void updateSignature()
protected void updateSignatureAlarmFired()
protected void updatePropagateButtons()
protected boolean mayPropagateParameters()
protected void doAction()
doAction
in class RefactoringDialog
protected java.lang.String getHelpId()
DialogWrapper
null
if no help is available.getHelpId
in class DialogWrapper