Outline repariert.
This commit is contained in:
parent
80f0708218
commit
a6c93c8816
@ -62,7 +62,11 @@ public class Typinferenz {
|
||||
|
||||
try {
|
||||
compiler = new JavaTXCompiler(editor.getFilePath().toFile(), false);
|
||||
this.parsedSource = compiler.sourceFiles.get(editor.getFilePath().toFile());
|
||||
SourceFile parsedSourceOrNull = compiler.sourceFiles.get(editor.getFilePath().toFile());
|
||||
|
||||
if (parsedSourceOrNull != null) {
|
||||
this.parsedSource = parsedSourceOrNull;
|
||||
}
|
||||
|
||||
return compiler.typeInferenceAsync(resultListener, new OutputStreamWriter(new NullOutputStream()));
|
||||
} catch (ClassNotFoundException e) {
|
||||
|
@ -352,7 +352,7 @@ public class JavEditor extends TextEditor implements UnifyResultListener {
|
||||
typeinference.updateresultSets(new Vector(evt.getNewTypeResult()));
|
||||
|
||||
Set<JavMarker> markers = new HashSet<JavMarker>();
|
||||
typeReplaceMarkers = typeinference.updateWithResult(new Vector(markers), evt.getNewTypeResult());
|
||||
typeReplaceMarkers.addAll(typeinference.updateWithResult(new Vector(markers), evt.getNewTypeResult()));
|
||||
|
||||
for (TypeReplaceMarker m : this.getTypeReplaceMarkers()) {
|
||||
markers.add(m);
|
||||
|
Loading…
Reference in New Issue
Block a user