public class IntroduceFieldPopupPanel extends IntroduceFieldCentralPanel
LOG, myAllowInitInMethod, myAllowInitInMethodIfAll, myInitializerExpression, myIsCurrentMethodConstructor, myIsInvokedOnDeclaration, myLocalVariable, myOccurrencesCount, myParentClass, myTypeSelectorManager, myWillBeDeclaredStatic, ourLastCbFinalState
Constructor and Description |
---|
IntroduceFieldPopupPanel(PsiClass parentClass,
PsiExpression initializerExpression,
PsiLocalVariable localVariable,
boolean isCurrentMethodConstructor,
boolean isInvokedOnDeclaration,
boolean willBeDeclaredStatic,
PsiExpression[] occurrences,
boolean allowInitInMethod,
boolean allowInitInMethodIfAll,
TypeSelectorManager typeSelectorManager) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowFinal() |
protected javax.swing.JPanel |
appendCheckboxes(java.awt.event.ItemListener itemListener) |
protected javax.swing.JPanel |
composeWholePanel(javax.swing.JComponent initializerPlacePanel,
javax.swing.JPanel checkboxPanel) |
protected javax.swing.JComponent |
createInitializerPlacePanel(java.awt.event.ItemListener itemListener,
java.awt.event.ItemListener finalUpdater) |
java.lang.String |
getFieldVisibility() |
BaseExpressionToFieldHandler.InitializationPlace |
getInitializerPlace() |
protected boolean |
hasSetUpChoice() |
protected void |
initializeControls(PsiExpression initializerExpression,
BaseExpressionToFieldHandler.InitializationPlace ourLastInitializerPlace) |
protected void |
initializeInitializerPlace(PsiExpression initializerExpression,
BaseExpressionToFieldHandler.InitializationPlace ourLastInitializerPlace) |
boolean |
isDeclareFinal() |
void |
setInitializeInFieldDeclaration() |
void |
setVisibility(java.lang.String visibility) |
protected boolean |
shouldUpdateTypeSelector() |
protected void |
updateCbFinal() |
protected boolean |
updateInitializationPlaceModel(boolean initializedInSetup,
boolean initializedInConstructor,
boolean locals) |
protected void |
updateInitializerSelection() |
addOccurrenceListener, appendOccurrences, createCenterPanel, enableFinal, isDeleteVariable, isReplaceAllOccurrences, saveFinalState, setCreateFinal, setEnabledInitializationPlaces, setReplaceAllOccurrences
public IntroduceFieldPopupPanel(PsiClass parentClass, PsiExpression initializerExpression, PsiLocalVariable localVariable, boolean isCurrentMethodConstructor, boolean isInvokedOnDeclaration, boolean willBeDeclaredStatic, PsiExpression[] occurrences, boolean allowInitInMethod, boolean allowInitInMethodIfAll, TypeSelectorManager typeSelectorManager)
protected void initializeInitializerPlace(PsiExpression initializerExpression, BaseExpressionToFieldHandler.InitializationPlace ourLastInitializerPlace)
initializeInitializerPlace
in class IntroduceFieldCentralPanel
protected void initializeControls(PsiExpression initializerExpression, BaseExpressionToFieldHandler.InitializationPlace ourLastInitializerPlace)
initializeControls
in class IntroduceFieldCentralPanel
public boolean isDeclareFinal()
isDeclareFinal
in class IntroduceFieldCentralPanel
public BaseExpressionToFieldHandler.InitializationPlace getInitializerPlace()
getInitializerPlace
in class IntroduceFieldCentralPanel
public java.lang.String getFieldVisibility()
getFieldVisibility
in class IntroduceFieldCentralPanel
protected javax.swing.JComponent createInitializerPlacePanel(java.awt.event.ItemListener itemListener, java.awt.event.ItemListener finalUpdater)
createInitializerPlacePanel
in class IntroduceFieldCentralPanel
protected boolean updateInitializationPlaceModel(boolean initializedInSetup, boolean initializedInConstructor, boolean locals)
updateInitializationPlaceModel
in class IntroduceFieldCentralPanel
protected boolean hasSetUpChoice()
hasSetUpChoice
in class IntroduceFieldCentralPanel
public void setInitializeInFieldDeclaration()
setInitializeInFieldDeclaration
in class IntroduceFieldCentralPanel
public void setVisibility(java.lang.String visibility)
setVisibility
in class IntroduceFieldCentralPanel
protected void updateCbFinal()
updateCbFinal
in class IntroduceFieldCentralPanel
protected boolean allowFinal()
allowFinal
in class IntroduceFieldCentralPanel
protected void updateInitializerSelection()
updateInitializerSelection
in class IntroduceFieldCentralPanel
protected boolean shouldUpdateTypeSelector()
shouldUpdateTypeSelector
in class IntroduceFieldCentralPanel
protected javax.swing.JPanel appendCheckboxes(java.awt.event.ItemListener itemListener)
appendCheckboxes
in class IntroduceFieldCentralPanel
protected javax.swing.JPanel composeWholePanel(javax.swing.JComponent initializerPlacePanel, javax.swing.JPanel checkboxPanel)
composeWholePanel
in class IntroduceFieldCentralPanel