mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
wrap in command
This commit is contained in:
+14
-9
@@ -247,20 +247,25 @@ class InplaceIntroduceParameterPopup extends IntroduceParameterSettingsUI {
|
||||
getReplaceFieldsWithGetters(), myMustBeFinal || myFinal, isGenerateDelegate(),
|
||||
myParameterTypePointer.getType(),
|
||||
parametersToRemove);
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
final Runnable runnable = new Runnable() {
|
||||
public void run() {
|
||||
final boolean [] conflictsFound = new boolean[] {true};
|
||||
processor.setPrepareSuccessfulSwingThreadCallback(new Runnable() {
|
||||
@Override
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
conflictsFound[0] = processor.hasConflicts();
|
||||
final boolean [] conflictsFound = new boolean[] {true};
|
||||
processor.setPrepareSuccessfulSwingThreadCallback(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
conflictsFound[0] = processor.hasConflicts();
|
||||
}
|
||||
});
|
||||
processor.run();
|
||||
normalizeParameterIdxAccordingToRemovedParams(parametersToRemove);
|
||||
ParameterInplaceIntroducer.super.moveOffsetAfter(!conflictsFound[0]);
|
||||
}
|
||||
});
|
||||
processor.run();
|
||||
normalizeParameterIdxAccordingToRemovedParams(parametersToRemove);
|
||||
ParameterInplaceIntroducer.super.moveOffsetAfter(!conflictsFound[0]);
|
||||
}
|
||||
});
|
||||
};
|
||||
CommandProcessor.getInstance().executeCommand(myProject, runnable, IntroduceParameterHandler.REFACTORING_NAME, null);
|
||||
} else {
|
||||
super.moveOffsetAfter(success);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user