/** * Returns the annotations with {@link Priority#HIGH}. * * @return the annotations with {@link Priority#HIGH} */ public DefaultAnnotationContainer getHigh() { return new DefaultAnnotationContainer(Priority.HIGH.getLocalizedString(), getHighAnnotations()); }
/** * Returns the annotations with {@link Priority#NORMAL}. * * @return the annotations with {@link Priority#NORMAL} */ public DefaultAnnotationContainer getNormal() { return new DefaultAnnotationContainer(Priority.NORMAL.getLocalizedString(), getNormalAnnotations()); }
/** * Returns the annotations with {@link Priority#LOW}. * * @return the annotations with {@link Priority#LOW} */ public DefaultAnnotationContainer getLow() { return new DefaultAnnotationContainer(Priority.LOW.getLocalizedString(), getLowAnnotations()); }
/** * Returns a tooltip showing the distribution of priorities for the selected * package. * * @param packageName * the package to show the distribution for * @return a tooltip showing the distribution of priorities */ public String getToolTip(final String packageName) { return module.getPackage(packageName).getToolTip(); }
/** * Returns the default label provider that is used to visualize the build result (i.e., the tab labels). * * @return the default label provider * @since 1.69 */ protected void attachLabelProvider(final AnnotationContainer container) { container.setLabelProvider(new AnnotationsLabelProvider(container.getPackageCategoryTitle())); }
/** * Simply calls {@link #readResolve()}. */ protected void superReadResolve() { readResolve(); }
/** * Creates a new instance of <code>AnnotationContainer</code>. * * @param name the name of this container * @param hierarchy the hierarchy of this container */ protected AnnotationContainer(final String name, final Hierarchy hierarchy) { initialize(); this.name = name; this.hierarchy = hierarchy; }
/** * Returns the annotations with {@link Priority#HIGH}. * * @return the annotations with {@link Priority#HIGH} */ public final Set<FileAnnotation> getHighAnnotations() { return getAnnotations(Priority.HIGH); }
/** * Let {@link FileAnnotation}s share some of their internal data structure * to reduce memory footprint. * * @param annotations * the annotations to compress * @return The same object as passed in the 'annotations' parameter to let * this function used as a filter. */ protected Collection<FileAnnotation> intern(final Collection<FileAnnotation> annotations) { return AbstractAnnotation.intern(annotations); }
/** * Returns the annotations with {@link Priority#HIGH}. * * @return the annotations with {@link Priority#HIGH} */ public DefaultAnnotationContainer getHigh() { return new DefaultAnnotationContainer(Priority.HIGH.getLocalizedString(), getHighAnnotations()); }
/** * Returns the annotations with {@link Priority#NORMAL}. * * @return the annotations with {@link Priority#NORMAL} */ public DefaultAnnotationContainer getNormal() { return new DefaultAnnotationContainer(Priority.NORMAL.getLocalizedString(), getNormalAnnotations()); }
/** * Returns the annotations with {@link Priority#LOW}. * * @return the annotations with {@link Priority#LOW} */ public DefaultAnnotationContainer getLow() { return new DefaultAnnotationContainer(Priority.LOW.getLocalizedString(), getLowAnnotations()); }
/** * Returns a tooltip showing the distribution of priorities for the selected * package. * * @param packageName * the package to show the distribution for * @return a tooltip showing the distribution of priorities */ public String getToolTip(final String packageName) { return module.getPackage(packageName).getToolTip(); } }
/** * Returns the default label provider that is used to visualize the build result (i.e., the tab labels). * * @return the default label provider * @since 1.69 */ protected void attachLabelProvider(final AnnotationContainer container) { container.setLabelProvider(new AnnotationsLabelProvider(container.getPackageCategoryTitle())); }