/** * Method for fetching AnnotationType which correspond to the name of the * annotation type stored in annotation. */ public void updateAnnotationType() { type = AnnotationTypes.getTypes().getType(getAnnotationType()); }
types.put(anno.getAnnotationType(), anno.getAnnotationType()); types.put(pasiveAnnos[i].getAnnotationType(), pasiveAnnos[i].getAnnotationType());
/** Method for fetching AnnotationType which * correspond to the name of the annotation type stored * in annotation. */ public void updateAnnotationType() { type = AnnotationTypes.getTypes().getType(getAnnotationType()); }
types.put(anno.getAnnotationType(), anno.getAnnotationType()); added = true; types.put(pasiveAnnos[i].getAnnotationType(), pasiveAnnos[i].getAnnotationType());
public String toString() { return "Annotation: type='" + getAnnotationType() + "', line=" + getLine() + // NOI18N ", offset=" + getOffset() + ", length=" + length + // NOI18N ", coloring=" + getColoring(); // NOI18N }
public String toString() { return "Annotation: type='" + getAnnotationType() + "', line=" + getLine() + // NOI18N ", offset=" + getOffset() + ", length=" + length + // NOI18N ", coloring=" + getColoring(); // NOI18N }
if (comb.getName().equals( anno.getAnnotationType() )) { countOfAnnos++; if (annosDupl.get(k) == null) continue; if (comb.getName().equals( ((AnnotationDesc)annosDupl.get(k)).getAnnotationType() )) { requiredCount--; if (annosDupl.get(k) == null) continue; if (comb.getName().equals( ((AnnotationDesc)annosDupl.get(k)).getAnnotationType() )) { countOfAnnos++; combinedAnnos.add(annosDupl.get(k));
@Override public void run() { try { int line = Utilities.getLineOffset((BaseDocument) doc, currentPosition); int startOffset = Utilities.getRowStartFromLineOffset((BaseDocument) doc, line); int endOffset = Utilities.getRowEnd((BaseDocument) doc, startOffset); AnnotationDesc desc = annotations.getActiveAnnotation(line); if (desc == null) { return ; } Collection<BaseAnnotation> annos; if (COMBINED_TYPES.contains(desc.getAnnotationType())) { annos = findAnnotations(comp, startOffset, endOffset); } else { annos = Collections.singletonList(findAnnotation(comp, desc, startOffset, endOffset)); } for (BaseAnnotation a : annos) { if (a != null) { anno.set(a); point.set(comp.modelToView(startOffset).getLocation()); break; } } } catch (BadLocationException ex) { ex.printStackTrace(); } } });
if (comb.getName().equals(anno.getAnnotationType())) { countOfAnnos++; if (annosDupl.get(k) == null) continue; if (comb.getName().equals(((AnnotationDesc) annosDupl.get(k)).getAnnotationType())) { requiredCount--; if (annosDupl.get(k) == null) continue; if (comb.getName().equals(((AnnotationDesc) annosDupl.get(k)).getAnnotationType())) { countOfAnnos++; combinedAnnos.add(annosDupl.get(k));
private String dumpAnnotaionDesc(AnnotationDesc ad) { return "offset=" + ad.getOffset() // NOI18N + "(ls=" + doc.getParagraphElement(ad.getOffset()).getStartOffset() // NOI18N + "), line=" + ad.getLine() // NOI18N + ", type=" + ad.getAnnotationType(); // NOI18N }
String annotationType = desc.getAnnotationType(); EditorAnnotationsHelper helper = EditorAnnotationsHelper. getInstance( getFile(comp));