protected int getOrder(Annotation annotation) { if (fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess; return extension.getLayer(annotation); } return IAnnotationAccessExtension.DEFAULT_LAYER; }
public void paint(Annotation annotation, GC gc, Canvas canvas, Rectangle bounds) { wrapped.paint(annotation, gc, canvas, bounds); }
public boolean isPaintable(Annotation annotation) { return wrapped.isPaintable(annotation); }
public Object[] getSupertypes(Object annotationType) { return wrapped.getSupertypes(annotationType); } }
public boolean isSubtype(Object annotationType, Object potentialSupertype) { return wrapped.isSubtype(annotationType, potentialSupertype); }
public String getTypeLabel(Annotation annotation) { return wrapped.getTypeLabel(annotation); }
private AnnotationBag findBagForType(Map<String, AnnotationBag> bagMap, String annotationType) { AnnotationBag bag= bagMap.get(annotationType); if (bag == null && fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess; Object[] superTypes= extension.getSupertypes(annotationType); for (int i= 0; i < superTypes.length && bag == null; i++) { bag= bagMap.get(superTypes[i]); } } return bag; }
private boolean isSubtype(Object annotationType) { if (fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess; return extension.isSubtype(annotationType, fType); } return fType.equals(annotationType); }
if (annotation != null) { if (annotationTypeLabel == null) annotationTypeLabel= ((IAnnotationAccessExtension)fAnnotationAccess).getTypeLabel(annotation); count++;
lay= annotationAccessExtension.getLayer(annotation); else if (annotation instanceof IAnnotationPresentation) { annotationPresentation= (IAnnotationPresentation)annotation; annotationAccessExtension.paint(annotation, gc, fCanvas, r); else if (annotationPresentation != null) annotationPresentation.paint(gc, fCanvas, r);
protected int getOrder(Annotation annotation) { if (fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess; return extension.getLayer(annotation); } return IAnnotationAccessExtension.DEFAULT_LAYER; }
public void paintControl(PaintEvent e) { Canvas can= (Canvas) e.getSource(); Annotation a= ((Item) can.getData()).fAnnotation; if (a != null) { Rectangle rect= new Rectangle(fLayouter.getBorderWidth(), fLayouter.getBorderWidth(), fLayouter.getAnnotationSize(), fLayouter.getAnnotationSize()); if (fAnnotationAccessExtension != null) fAnnotationAccessExtension.paint(a, e.gc, can, rect); } } }
private AnnotationBag findBagForType(Map<String, AnnotationBag> bagMap, String annotationType) { AnnotationBag bag= bagMap.get(annotationType); if (bag == null && fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess; Object[] superTypes= extension.getSupertypes(annotationType); for (int i= 0; i < superTypes.length && bag == null; i++) { bag= bagMap.get(superTypes[i]); } } return bag; }
if (!((IAnnotationAccessExtension)fAnnotationAccess).isPaintable(annotation)) continue;
private boolean isSubtype(Object annotationType) { if (fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess; return extension.isSubtype(annotationType, fType); } return fType.equals(annotationType); }
if (annotation != null) { if (annotationTypeLabel == null) annotationTypeLabel= ((IAnnotationAccessExtension)fAnnotationAccess).getTypeLabel(annotation); count++;
lay= annotationAccessExtension.getLayer(annotation); else if (annotation instanceof IAnnotationPresentation) { annotationPresentation= (IAnnotationPresentation)annotation; annotationAccessExtension.paint(annotation, gc, fCanvas, r); else if (annotationPresentation != null) annotationPresentation.paint(gc, fCanvas, r);
protected int getOrder(Annotation annotation) { if (fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess; return extension.getLayer(annotation); } return IAnnotationAccessExtension.DEFAULT_LAYER; }