mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
introduce parameter: when initial names are suggested type selector is not initialized yet and selected type is always null, default type would be better
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ public abstract class AbstractJavaInplaceIntroducer extends AbstractInplaceIntro
|
||||
|
||||
@Override
|
||||
protected String[] suggestNames(boolean replaceAll, PsiVariable variable) {
|
||||
final PsiType defaultType = myTypeSelectorManager.getTypeSelector().getSelectedType();
|
||||
final PsiType defaultType = getType();
|
||||
final String propertyName = variable != null
|
||||
? JavaCodeStyleManager.getInstance(myProject).variableNameToPropertyName(variable.getName(), VariableKind.LOCAL_VARIABLE)
|
||||
: null;
|
||||
|
||||
Reference in New Issue
Block a user