This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 185928

Summary: Push model for annotations
Product: editor Reporter: Jan Lahoda <jlahoda>
Component: Hints & AnnotationsAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jan Lahoda 2010-05-11 14:56:38 UTC
(See bug #149538)

I might make sense to introduce a way to set many annotations at once, removing all previously set annotations (with the same key). Something like:
void setAnnotations(String key, Collection<Annotation> annotations); 
Not only this might be easier for some clients, but it could also be made faster than removing/adding the annotations one-by-one. See also:
http://hg.netbeans.org/jet-main/file/5e405162ea26/java.editor/src/org/netbeans/modules/java/editor/overridden/AnnotationsHolder.java