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.
caret.setDot(cursorPosition);
}
support.ensureAnnotationsLoaded();
protected CloneableTopComponent createClonedObject() {
return positionManager;
private boolean annotationsLoaded;
void ensureAnnotationsLoaded() {
if (!annotationsLoaded) {
annotationsLoaded = true;
Line.Set lines = getLineSet();
Lookup.Result result = Lookup.getDefault().lookup(new Lookup.Template(AnnotationProvider.class));
for (Iterator it = result.allInstances().iterator(); it.hasNext(); ) {
AnnotationProvider act = (AnnotationProvider)it.next();
act.annotate(lines, lookup);
/** Overrides superclass method, first processes document preparation.
* @see #prepareDocument */