Fix visitors not started

This commit is contained in:
Clément Fournier
2018-06-08 19:43:23 +02:00
parent 2f730806fb
commit e533c54ffb
2 changed files with 4 additions and 5 deletions

View File

@ -109,7 +109,8 @@ public class SourceEditorController implements Initializable, SettingsOwner {
codeEditorArea.richChanges()
.filter(t -> !t.isIdentity())
.successionEnds(AST_REFRESH_DELAY)
// Refresh the AST anytime the text or the language version changes
// Refresh the AST anytime the text, classloader, or language version changes
.or(auxclasspathClassLoader.changes())
.or(languageVersionProperty().changes())
.subscribe(tick -> {
// Discard the AST if the language version has changed
@ -117,8 +118,6 @@ public class SourceEditorController implements Initializable, SettingsOwner {
parent.refreshAST();
});
auxclasspathClassLoader.changes().subscribe(t -> parent.refreshAST());
codeEditorArea.setParagraphGraphicFactory(LineNumberFactory.get(codeEditorArea));
}

View File

@ -107,13 +107,13 @@ public class ASTManager {
designerRoot.getLogger().logEvent(new LogEntry(e, Category.SYMBOL_FACADE_EXCEPTION));
}
try {
languageVersionHandler.getQualifiedNameResolutionFacade(classLoader);
languageVersionHandler.getQualifiedNameResolutionFacade(classLoader).start(node);
} catch (Exception e) {
designerRoot.getLogger().logEvent(new LogEntry(e, Category.QUALIFIED_NAME_RESOLUTION_EXCEPTION));
}
try {
languageVersionHandler.getTypeResolutionFacade(classLoader);
languageVersionHandler.getTypeResolutionFacade(classLoader).start(node);
} catch (Exception e) {
designerRoot.getLogger().logEvent(new LogEntry(e, Category.TYPERESOLUTION_EXCEPTION));
}