Manual creation of AnnotationHolderImpl instance Follow
I currently working on a plugin for my project. I need to do a verification of files in my project whether they are present in some sort of List of files' names and if they are not I need to set a fileLevel() warning. I implemented Annotator.annotate() but it is not fully covered my case.. I also need to add/remove fileLevel() warning from the file when the List of files is being changed (adding/removing). I can't do that because I need to call annotate() from my code manually. I decided to implement an event logic that will trigger the annotation of files for both cases from the code. The question: Is there a way to create the instance of AnnotationHolderImpl (all constructors of this class are marked as @Deprecated) to use it in the event class?
Please sign in to leave a comment.
Could you please clarify the issue?
Do I understand correctly that file-level annotations are not updated when you edit the list of files?
The list is a .lst file containing the files' names inside a project-specific folder. I need to set a file-level annotation when the .lst file is changed (add/edit/remove file name) for files inside that project-specific folder depending on whether they are present in .lst file or not.
I think I understand the use case. It’s unclear what is the current solution, the exact issue, and why you want to solve it by manual creation of
AnnotationHolderImpl, which is a part of the internal API and should not be used directly.