mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
InlineMethodHandler: recreation of processor removed as write action cannot interfere the modal dialog
Review ID: IDEA-CR-54369 GitOrigin-RevId: de3a0a8862d3138b7caa413c18a21cdc3d346505
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6ed3465b66
commit
0bdcc75440
@@ -106,15 +106,8 @@ public class InlineMethodHandler extends JavaInlineActionHandler {
|
||||
if (processor != null) {
|
||||
if (Messages.showOkCancelDialog("Do you want to inline the object and the subsequent call?", "Inline Object", "Inline", "Cancel",
|
||||
Messages.getQuestionIcon()) == Messages.OK) {
|
||||
processor = InlineObjectProcessor.create(reference, method);
|
||||
if (processor == null) {
|
||||
// Code changed while dialog was displayed?
|
||||
String message = RefactoringBundle.message("refactoring.cannot.be.applied", REFACTORING_NAME);
|
||||
CommonRefactoringUtil.showErrorHint(project, editor, message, REFACTORING_NAME, HelpID.INLINE_CONSTRUCTOR);
|
||||
} else {
|
||||
processor.setPrepareSuccessfulSwingThreadCallback(() -> {});
|
||||
processor.run();
|
||||
}
|
||||
processor.setPrepareSuccessfulSwingThreadCallback(() -> {});
|
||||
processor.run();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user