Skip to content

Commit

Permalink
JENKINS-18894: Change descriptor to not show the column by default
Browse files Browse the repository at this point in the history
  • Loading branch information
centic9 committed Nov 4, 2013
1 parent fc67b50 commit c3c68d5
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -6,6 +6,7 @@
import hudson.model.Run;
import hudson.plugins.jacoco.JacocoBuildAction;
import hudson.plugins.jacoco.model.Coverage;
import hudson.views.ListViewColumnDescriptor;
import hudson.views.ListViewColumn;

import java.awt.Color;
Expand Down Expand Up @@ -119,12 +120,17 @@ public Descriptor<ListViewColumn> getDescriptor() {
return DESCRIPTOR;
}

private static class DescriptorImpl extends Descriptor<ListViewColumn> {
private static class DescriptorImpl extends ListViewColumnDescriptor {
@Override
public ListViewColumn newInstance(final StaplerRequest req,
final JSONObject formData) throws FormException {
return new JaCoCoColumn();
}

@Override
public boolean shownByDefault() {
return false;
}

@Override
public String getDisplayName() {
Expand Down

0 comments on commit c3c68d5

Please sign in to comment.