This commit is contained in:
Alexey Kudravtsev
2010-11-23 18:49:24 +03:00
parent c013785201
commit 9577a3c949
5 changed files with 4 additions and 5 deletions
@@ -174,8 +174,7 @@ public class ProblemsHolder {
@Nullable
public ProblemDescriptor[] getResultsArray() {
final List<ProblemDescriptor> problems = myProblems;
myProblems = null;
final List<ProblemDescriptor> problems = getResults();
return problems == null ? null : problems.toArray(new ProblemDescriptor[problems.size()]);
}
@@ -26,7 +26,6 @@ import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.RangeMarker;
import com.intellij.openapi.editor.ex.RangeMarkerEx;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.TextRange;
import com.intellij.psi.PsiDocumentManager;
@@ -61,7 +61,7 @@ public class CodeFoldingManagerImpl extends CodeFoldingManager implements Projec
myProject = project;
project.getMessageBus().connect().subscribe(DocumentBulkUpdateListener.TOPIC, new DocumentBulkUpdateListener.Adapter() {
public void updateStarted(final Document doc) {
resetFoldingInfo(doc); //TODO RangeMarkers tree convert
resetFoldingInfo(doc);
}
});
}
@@ -17,6 +17,7 @@ package com.intellij.openapi.progress;
public class ProcessCanceledException extends RuntimeException {
public ProcessCanceledException() {
int i = 0;
}
public ProcessCanceledException(Throwable cause) {
@@ -782,7 +782,7 @@ public class ContainerUtil {
@NotNull
public static <T, V> List<V> map(@NotNull T[] arr, @NotNull Function<T, V> mapping) {
List<V> result = new ArrayList<V>();
List<V> result = new ArrayList<V>(arr.length);
for (T t : arr) {
result.add(mapping.fun(t));
}