package hudson.plugins.analysis.views; import java.util.Collection; import hudson.model.AbstractBuild; import hudson.plugins.analysis.util.model.FileAnnotation; /** * Result object representing a dynamic tab. * * @author Ulli Hafner */ public class TabDetail extends AbstractAnnotationsDetail { /** Unique identifier of this class. */ private static final long serialVersionUID = -1854984151887397361L; /** URL of the content to load. */ private final String url; /** * Creates a new instance of {@link TabDetail}. * * @param owner * current build as owner of this action. * @param detailFactory * factory to create detail objects with * @param annotations * the module to show the details for * @param url * URL to render the content of this tab * @param defaultEncoding * the default encoding to be used when reading and parsing files */ public TabDetail(final AbstractBuild<?, ?> owner, final DetailFactory detailFactory, final Collection<FileAnnotation> annotations, final String url, final String defaultEncoding) { super(owner, detailFactory, annotations, defaultEncoding, "No Header", Hierarchy.PROJECT); this.url = url; } /** {@inheritDoc} */ public String getDisplayName() { return "NOT USED"; } /** * Returns the url. * * @return the url */ public String getUrl() { return url; } }