This repository has been archived by the owner on Apr 6, 2022. 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.
Browse files
Browse the repository at this point in the history
[JENKINS-12186] Add selection of analysis plug-ins for table portlet.
- Loading branch information
Showing
11 changed files
with
252 additions
and
214 deletions.
There are no files selected for viewing
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
73 changes: 73 additions & 0 deletions
73
src/main/java/hudson/plugins/analysis/collector/dashboard/AnalysisGraphDescriptor.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,73 @@ | ||
package hudson.plugins.analysis.collector.dashboard; | ||
|
||
import hudson.model.Descriptor; | ||
import hudson.plugins.analysis.collector.AnalysisDescriptor; | ||
import hudson.plugins.view.dashboard.DashboardPortlet; | ||
|
||
/** | ||
* Descriptor with convenience methods for accessing the installed plug-ins. | ||
* | ||
* @author Ulli Hafner | ||
*/ | ||
public abstract class AnalysisGraphDescriptor extends Descriptor<DashboardPortlet> { | ||
/** | ||
* Returns whether the Checkstyle plug-in is installed. | ||
* | ||
* @return <code>true</code> if the Checkstyle plug-in is installed, | ||
* <code>false</code> if not. | ||
*/ | ||
public boolean isCheckStyleInstalled() { | ||
return AnalysisDescriptor.isCheckStyleInstalled(); | ||
} | ||
|
||
/** | ||
* Returns whether the Dry plug-in is installed. | ||
* | ||
* @return <code>true</code> if the Dry plug-in is installed, | ||
* <code>false</code> if not. | ||
*/ | ||
public boolean isDryInstalled() { | ||
return AnalysisDescriptor.isDryInstalled(); | ||
} | ||
|
||
/** | ||
* Returns whether the FindBugs plug-in is installed. | ||
* | ||
* @return <code>true</code> if the FindBugs plug-in is installed, | ||
* <code>false</code> if not. | ||
*/ | ||
public boolean isFindBugsInstalled() { | ||
return AnalysisDescriptor.isFindBugsInstalled(); | ||
} | ||
|
||
/** | ||
* Returns whether the PMD plug-in is installed. | ||
* | ||
* @return <code>true</code> if the PMD plug-in is installed, | ||
* <code>false</code> if not. | ||
*/ | ||
public boolean isPmdInstalled() { | ||
return AnalysisDescriptor.isPmdInstalled(); | ||
} | ||
|
||
/** | ||
* Returns whether the Open Tasks plug-in is installed. | ||
* | ||
* @return <code>true</code> if the Open Tasks plug-in is installed, | ||
* <code>false</code> if not. | ||
*/ | ||
public boolean isOpenTasksInstalled() { | ||
return AnalysisDescriptor.isOpenTasksInstalled(); | ||
} | ||
|
||
/** | ||
* Returns whether the Warnings plug-in is installed. | ||
* | ||
* @return <code>true</code> if the Warnings plug-in is installed, | ||
* <code>false</code> if not. | ||
*/ | ||
public boolean isWarningsInstalled() { | ||
return AnalysisDescriptor.isWarningsInstalled(); | ||
} | ||
} | ||
|
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
Oops, something went wrong.