mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
inplace introduce: do not succeed if conflicts were found (IDEA-66499)
This commit is contained in:
+3
@@ -284,13 +284,16 @@ class InplaceIntroduceParameterPopup extends IntroduceParameterSettingsUI {
|
||||
getReplaceFieldsWithGetters(), myMustBeFinal || myFinal, isGenerateDelegate(),
|
||||
myParameterTypePointer.getType(),
|
||||
parametersToRemove);
|
||||
final boolean [] conflictsFound = new boolean[] {true};
|
||||
processor.setPrepareSuccessfulSwingThreadCallback(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
conflictsFound[0] = false;
|
||||
}
|
||||
});
|
||||
processor.run();
|
||||
normalizeParameterIdxAccordingToRemovedParams(parametersToRemove);
|
||||
success = !conflictsFound[0];
|
||||
}
|
||||
super.moveOffsetAfter(success);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user