This repository has been archived by the owner on Jan 16, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED JENKINS-22176] Add a view column for the total warnings count
- Loading branch information
1 parent
feac537
commit 0dcef0c
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
src/main/java/org/jenkinsci/plugins/android_lint/LintColumn.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package org.jenkinsci.plugins.android_lint; | ||
|
||
import org.kohsuke.stapler.DataBoundConstructor; | ||
|
||
import hudson.Extension; | ||
import hudson.plugins.analysis.views.WarningsCountColumn; | ||
import hudson.views.ListViewColumnDescriptor; | ||
|
||
public class LintColumn extends WarningsCountColumn<LintProjectAction> { | ||
@DataBoundConstructor | ||
public LintColumn() { | ||
super(); | ||
} | ||
|
||
@Override | ||
protected Class<LintProjectAction> getProjectAction() { | ||
return LintProjectAction.class; | ||
} | ||
|
||
@Override | ||
public String getColumnCaption() { | ||
return Messages.AndroidLint_Warnings_ColumnHeader(); | ||
} | ||
|
||
@Extension | ||
public static class ColumnDescriptor extends ListViewColumnDescriptor { | ||
@Override | ||
public boolean shownByDefault() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return Messages.AndroidLint_Warnings_Column(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters