package hudson.plugins.findbugs; import hudson.Extension; import hudson.plugins.analysis.core.PluginDescriptor; /** * Descriptor for the class {@link FindBugsPublisher}. Used as a singleton. The * class is marked as public so that it can be accessed from views. * * @author Ulli Hafner */ @Extension(ordinal = 100) // NOCHECKSTYLE public final class FindBugsDescriptor extends PluginDescriptor { private static final String PLUGIN_NAME = "findbugs"; /** Icon to use for the result and project action. */ private static final String ACTION_ICON = "/plugin/findbugs/icons/findbugs-32x32.gif"; /** * Instantiates a new find bugs descriptor. */ public FindBugsDescriptor() { super(FindBugsPublisher.class); } /** {@inheritDoc} */ @Override public String getDisplayName() { return Messages.FindBugs_Publisher_Name(); } /** {@inheritDoc} */ @Override public String getPluginName() { return PLUGIN_NAME; } /** {@inheritDoc} */ @Override public String getIconUrl() { return ACTION_ICON; } }