mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
wait for reformat to finish
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -20,6 +20,7 @@ import com.intellij.openapi.command.WriteCommandAction
|
||||
import com.intellij.openapi.editor.Editor
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase
|
||||
import com.intellij.util.ui.UIUtil
|
||||
import com.siyeh.ig.style.UnqualifiedFieldAccessInspection
|
||||
import org.jetbrains.annotations.Nullable
|
||||
/**
|
||||
@@ -103,5 +104,6 @@ class Foo {
|
||||
}
|
||||
}.invoke(project, myFixture.editor, myFixture.file)
|
||||
})
|
||||
UIUtil.dispatchAllInvocationEvents()
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -25,6 +25,7 @@ import com.intellij.psi.PsiClass
|
||||
import com.intellij.psi.PsiFile
|
||||
import com.intellij.psi.impl.source.PostprocessReformattingAspect
|
||||
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase
|
||||
import com.intellij.util.ui.UIUtil
|
||||
import org.jetbrains.annotations.Nullable
|
||||
import org.jetbrains.plugins.groovy.actions.generate.accessors.GroovyGenerateGetterSetterAction
|
||||
import org.jetbrains.plugins.groovy.actions.generate.constructors.GroovyGenerateConstructorHandler
|
||||
@@ -382,6 +383,7 @@ class GrImportStatementStub {
|
||||
return members
|
||||
}
|
||||
}.invoke(project, myFixture.editor, myFixture.file);
|
||||
UIUtil.dispatchAllInvocationEvents()
|
||||
PostprocessReformattingAspect.getInstance(project).doPostponedFormatting()
|
||||
}
|
||||
}.execute()
|
||||
|
||||
+2
@@ -23,6 +23,7 @@ import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.testFramework.PlatformTestCase;
|
||||
import com.intellij.testFramework.PsiTestUtil;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -55,6 +56,7 @@ public class GenerateGetterSetterTest extends DaemonAnalyzerTestCase {
|
||||
return members;
|
||||
}
|
||||
}.invoke(getProject(), getEditor(), getFile());
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
checkResultByFile("/generateGetterSetter/after" + getTestName(false) + ".java");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user