public Object[] getSupertypes(Object annotationType) { return wrapped.getSupertypes(annotationType); } }
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 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; }
/** * Returns the color for the given annotation type * * @param annotationType the annotation type * @return the color * @since 3.0 */ private Color findColor(Object annotationType) { Color color= fAnnotationTypes2Colors.get(annotationType); if (color != null) return color; if (fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess; Object[] superTypes= extension.getSupertypes(annotationType); if (superTypes != null) { for (int i= 0; i < superTypes.length; i++) { color= fAnnotationTypes2Colors.get(superTypes[i]); if (color != null) return color; } } } return null; }
/** * Returns the color for the given annotation type * * @param annotationType the annotation type * @return the color * @since 3.0 */ private Color findColor(Object annotationType) { Color color= fAnnotationTypes2Colors.get(annotationType); if (color != null) return color; if (fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess; Object[] superTypes= extension.getSupertypes(annotationType); if (superTypes != null) { for (Object superType : superTypes) { color= fAnnotationTypes2Colors.get(superType); if (color != null) return color; } } } return null; }
Object[] superTypes= extension.getSupertypes(annotationType); if (superTypes != null) { for (Object superType : superTypes) {
Object[] superTypes= extension.getSupertypes(annotationType); if (superTypes != null) { for (int i= 0; i < superTypes.length; i++) {
/** * Returns the painting strategy for the given annotation. * * @param type the annotation type * @return the annotation painter * @since 3.0 */ private Object getPaintingStrategy(final String type) { Object strategy= fCachedAnnotationType2PaintingStrategy.get(type); if (strategy != null) return strategy; strategy= fPaintingStrategyId2PaintingStrategy.get(fAnnotationType2PaintingStrategyId.get(type)); if (strategy != null) { fCachedAnnotationType2PaintingStrategy.put(type, strategy); return strategy; } if (fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension ext = (IAnnotationAccessExtension) fAnnotationAccess; Object[] sts = ext.getSupertypes(type); for (Object st : sts) { strategy= fPaintingStrategyId2PaintingStrategy.get(fAnnotationType2PaintingStrategyId.get(st)); if (strategy != null) { fCachedAnnotationType2PaintingStrategy.put(type, strategy); return strategy; } } } fCachedAnnotationType2PaintingStrategy.put(type, NULL_STRATEGY); return null; }
/** * Returns the painting strategy for the given annotation. * * @param type the annotation type * @return the annotation painter * @since 3.0 */ private Object getPaintingStrategy(final String type) { Object strategy= fCachedAnnotationType2PaintingStrategy.get(type); if (strategy != null) return strategy; strategy= fPaintingStrategyId2PaintingStrategy.get(fAnnotationType2PaintingStrategyId.get(type)); if (strategy != null) { fCachedAnnotationType2PaintingStrategy.put(type, strategy); return strategy; } if (fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension ext = (IAnnotationAccessExtension) fAnnotationAccess; Object[] sts = ext.getSupertypes(type); for (int i= 0; i < sts.length; i++) { strategy= fPaintingStrategyId2PaintingStrategy.get(fAnnotationType2PaintingStrategyId.get(sts[i])); if (strategy != null) { fCachedAnnotationType2PaintingStrategy.put(type, strategy); return strategy; } } } fCachedAnnotationType2PaintingStrategy.put(type, NULL_STRATEGY); return null; }