Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[JENKINS-31421] Make y-axis label configurable.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed May 12, 2016
1 parent 4ea956f commit c1f8298
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dry.iml
Expand Up @@ -22,7 +22,7 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: org.jvnet.hudson.plugins:analysis-core:1.75" level="project" />
<orderEntry type="module" module-name="analysis-core" />
<orderEntry type="library" name="Maven: de.java2html:java2html:5.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.3.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-digester3:3.2" level="project" />
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -32,7 +32,7 @@
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>analysis-core</artifactId>
<version>1.75</version>
<version>1.77-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/hudson/plugins/dry/DuplicatedLinesGraph.java
Expand Up @@ -27,7 +27,7 @@ public String getId() {

@Override
public String getLabel() {
return Messages.Trend_type_duplicated_lines();
return Messages.Trend_Type_duplicated_lines();
}

// FIXME: analysis-core 2.0: use real type
Expand All @@ -42,7 +42,7 @@ protected List<Integer> computeSeries(final BuildResult current) {

@Override
protected JFreeChart createChart(final CategoryDataset dataSet) {
return createLineGraph(dataSet, false);
return createLineGraph(dataSet, false, Messages.Trend_duplicated_lines_yAxisLabel());
}

@Override
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/hudson/plugins/dry/Messages.properties
Expand Up @@ -32,4 +32,5 @@ Portlet.WarningsPriorityGraph=Duplicate code trend graph (priority distribution)
Portlet.WarningsNewVsFixedGraph=Duplicate code trend graph (new vs. fixed)
Portlet.WarningsTotalsGraph=Duplicate code trend graph (totals)

Trend_type_duplicated_lines=Total number of duplicated lines
Trend.Type.duplicated.lines=Total number of duplicated lines
Trend.duplicated_lines.yAxisLabel=lines
3 changes: 2 additions & 1 deletion src/main/resources/hudson/plugins/dry/Messages_de.properties
Expand Up @@ -32,4 +32,5 @@ Portlet.WarningsPriorityGraph=Duplizierter Quelltext Trend Graph (Verteilung nac
Portlet.WarningsNewVsFixedGraph=Duplizierter Quelltext Trend Graph (Verhältnis von neu zu behoben)
Portlet.WarningsTotalsGraph=Duplizierter Quelltext Trend Graph (Gesamtanzahl)

Trend_type_duplicated_lines=Gesamtzahl an duplizierten Zeilen
Trend.Type.duplicated.lines=Gesamtzahl an duplizierten Zeilen
Trend.duplicated_lines.yAxisLabel=Zeilen

0 comments on commit c1f8298

Please sign in to comment.