|
|
|
[
Permlink
| « Hide
]
Eugene Vigdorchik - 06 Apr 06 13:34
Annotator should be rerun automatically on any file change. The only optimization is done when there is modification interior to java code block, in which case modifications are considered local and not causing any other files' validity state change.
I filed IDEA-7297 about defining such dependencies.
Neither inspections, nor annotators are rerun if no file is changed inside the project. If at least one file changes, then both are rerun on editor's next focus activation. Do you need to rerun if the changed files are outside the project?
Interesting, I wonder if this has changed recently or if I made that behavior up. No, we only need to rerun if files inside the project changed. However, I'd prefer API where I tell IDEA when to re-annotate, rather than it asking me, or having to define dependencies at parse time or something.
DaemonCodeAnalyzer.getInstance(project).restart() is what you probably looking for. It's not an OpenAPI so if it works for you please let me know and we'll move it out.
|
||||||||||||||||||||||||||||||||||||