resolve cyclic dependency between lang-impl and vcs-impl, lang-impl and testFramework

This commit is contained in:
Vladimir Krivosheev
2015-08-19 07:45:36 +02:00
parent 0f3322c7fa
commit 8d094ccd93
24 changed files with 332 additions and 204 deletions
@@ -64,7 +64,7 @@ public class TestDiscoverySearchHelper {
if (classes.length == 0 || TestFrameworks.detectFramework(classes[0]) == null) return;
}
try {
final List<TextRange> changedTextRanges = FormatChangedTextUtil.getChangedTextRanges(project, psiFile);
final List<TextRange> changedTextRanges = FormatChangedTextUtil.getInstance().getChangedTextRanges(project, psiFile);
for (TextRange textRange : changedTextRanges) {
final PsiElement start = psiFile.findElementAt(textRange.getStartOffset());
final PsiElement end = psiFile.findElementAt(textRange.getEndOffset());