public abstract class ExtractSuperBaseDialog<ClassType extends PsiElement,MemberInfoType extends MemberInfoBase> extends RefactoringDialog
Modifier and Type | Class and Description |
---|---|
protected static class |
ExtractSuperBaseDialog.OperationFailedException |
DialogWrapper.CancelAction, DialogWrapper.DialogStyle, DialogWrapper.DialogWrapperAction, DialogWrapper.DialogWrapperExitAction, DialogWrapper.DoNotAskOption, DialogWrapper.IdeModalityType, DialogWrapper.OkAction
Modifier and Type | Field and Description |
---|---|
protected DocCommentPanel |
myDocCommentPanel |
protected java.util.List<MemberInfoType> |
myMemberInfos |
protected ComponentWithBrowseButton |
myPackageNameField |
protected javax.swing.JLabel |
myPackageNameLabel |
protected ClassType |
mySourceClass |
protected PsiDirectory |
myTargetDirectory |
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 |
---|
ExtractSuperBaseDialog(Project project,
ClassType sourceClass,
java.util.List<MemberInfoType> members,
java.lang.String refactoringName) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkConflicts() |
protected javax.swing.JComponent |
createActionComponent() |
protected javax.swing.JPanel |
createDestinationRootPanel() |
protected javax.swing.JTextField |
createExtractedSuperNameField() |
protected javax.swing.JComponent |
createNorthPanel()
Factory method.
|
protected abstract ComponentWithBrowseButton |
createPackageNameField() |
protected abstract BaseRefactoringProcessor |
createProcessor() |
protected abstract javax.swing.JTextField |
createSourceClassField() |
protected void |
customizeRadiobuttons(javax.swing.Box box,
javax.swing.ButtonGroup buttonGroup) |
protected void |
doAction() |
protected void |
executeRefactoring() |
protected abstract java.lang.String |
getClassNameLabelText() |
protected abstract java.lang.String |
getDestinationPackageRecentKey() |
protected abstract java.lang.String |
getDocCommentPanelName() |
int |
getDocCommentPolicy() |
protected abstract int |
getDocCommentPolicySetting() |
protected abstract java.lang.String |
getEntityName() |
java.lang.String |
getExtractedSuperName() |
protected abstract java.lang.String |
getExtractedSuperNameNotSpecifiedMessage() |
protected abstract java.lang.String |
getPackageNameLabelText() |
javax.swing.JComponent |
getPreferredFocusedComponent() |
java.util.Collection<MemberInfoType> |
getSelectedMemberInfos() |
PsiDirectory |
getTargetDirectory() |
protected abstract java.lang.String |
getTargetPackageName() |
protected abstract java.lang.String |
getTopLabelText() |
protected void |
init() |
boolean |
isExtractSuperclass() |
protected boolean |
isPossibleToRenameOriginal() |
protected abstract void |
preparePackage() |
protected abstract void |
setDocCommentPolicySetting(int policy) |
protected void |
updateDialog() |
protected abstract java.lang.String |
validateName(java.lang.String name) |
protected java.lang.String |
validateQualifiedName(java.lang.String packageName,
java.lang.String extractedSuperName) |
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, createCenterPanel, 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, 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 final ClassType extends PsiElement mySourceClass
protected PsiDirectory myTargetDirectory
protected final java.util.List<MemberInfoType extends MemberInfoBase> myMemberInfos
protected javax.swing.JLabel myPackageNameLabel
protected ComponentWithBrowseButton myPackageNameField
protected DocCommentPanel myDocCommentPanel
public ExtractSuperBaseDialog(Project project, ClassType sourceClass, java.util.List<MemberInfoType> members, java.lang.String refactoringName)
protected abstract ComponentWithBrowseButton createPackageNameField()
protected javax.swing.JPanel createDestinationRootPanel()
protected abstract javax.swing.JTextField createSourceClassField()
protected abstract java.lang.String getDocCommentPanelName()
protected abstract java.lang.String getExtractedSuperNameNotSpecifiedMessage()
protected abstract BaseRefactoringProcessor createProcessor()
protected abstract int getDocCommentPolicySetting()
protected abstract void setDocCommentPolicySetting(int policy)
protected abstract java.lang.String validateName(java.lang.String name)
protected java.lang.String validateQualifiedName(java.lang.String packageName, java.lang.String extractedSuperName)
protected abstract java.lang.String getTopLabelText()
protected abstract java.lang.String getClassNameLabelText()
protected abstract java.lang.String getPackageNameLabelText()
protected abstract java.lang.String getEntityName()
protected abstract void preparePackage() throws ExtractSuperBaseDialog.OperationFailedException
protected abstract java.lang.String getDestinationPackageRecentKey()
protected void init()
init
in class DialogWrapper
protected javax.swing.JTextField createExtractedSuperNameField()
protected javax.swing.JComponent createActionComponent()
protected boolean isPossibleToRenameOriginal()
protected void customizeRadiobuttons(javax.swing.Box box, javax.swing.ButtonGroup buttonGroup)
protected javax.swing.JComponent createNorthPanel()
DialogWrapper
null
value. In this case there will be no input panel.createNorthPanel
in class DialogWrapper
public javax.swing.JComponent getPreferredFocusedComponent()
getPreferredFocusedComponent
in class DialogWrapper
protected void updateDialog()
public java.lang.String getExtractedSuperName()
protected abstract java.lang.String getTargetPackageName()
public PsiDirectory getTargetDirectory()
public int getDocCommentPolicy()
public boolean isExtractSuperclass()
protected void doAction()
doAction
in class RefactoringDialog
protected void executeRefactoring()
protected boolean checkConflicts()
public java.util.Collection<MemberInfoType> getSelectedMemberInfos()