mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
end template in tests as normal; if template was canceled - don't perform onSuccess method setup (IDEA-157973)
This commit is contained in:
+1
@@ -259,6 +259,7 @@ public class CreateMethodFromUsageFix extends CreateFromUsageBaseFix {
|
||||
startTemplate(newEditor, template, project, new TemplateEditingAdapter() {
|
||||
@Override
|
||||
public void templateFinished(Template template, boolean brokenOff) {
|
||||
if (brokenOff) return;
|
||||
WriteCommandAction.runWriteCommandAction(project, () -> {
|
||||
PsiDocumentManager.getInstance(project).commitDocument(newEditor.getDocument());
|
||||
final int offset = newEditor.getCaretModel().getOffset();
|
||||
|
||||
Reference in New Issue
Block a user