Skip to content

Commit

Permalink
Renamed formattedName to getLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
oskopek committed Sep 28, 2015
1 parent 5f9d16c commit 7b9b03f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Expand Up @@ -36,7 +36,7 @@ public enum ProblemStatisticType implements StatisticType {
MEMORY_USE; MEMORY_USE;


@Override @Override
public String formattedName() { public String getLabel() {
return StringUtils.capitalize(name().replace('_', ' ').toLowerCase()); return StringUtils.capitalize(name().replace('_', ' ').toLowerCase());
} }


Expand Down
Expand Up @@ -33,7 +33,7 @@ public enum SingleStatisticType implements StatisticType {
PICKED_MOVE_TYPE_STEP_SCORE_DIFF; PICKED_MOVE_TYPE_STEP_SCORE_DIFF;


@Override @Override
public String formattedName() { public String getLabel() {
return StringUtils.capitalize(name().replace('_', ' ').toLowerCase()); return StringUtils.capitalize(name().replace('_', ' ').toLowerCase());
} }


Expand Down
Expand Up @@ -26,6 +26,6 @@ public interface StatisticType {
/** /**
* @return never null * @return never null
*/ */
public String formattedName(); public String getLabel();


} }
Expand Up @@ -530,13 +530,13 @@
<#assign firstRow = true> <#assign firstRow = true>
<#list problemBenchmarkResult.problemStatisticList as problemStatistic> <#list problemBenchmarkResult.problemStatisticList as problemStatistic>
<li<#if firstRow && !subSingleSummaryChartShown> class="active"</#if>> <li<#if firstRow && !subSingleSummaryChartShown> class="active"</#if>>
<a href="#problemStatistic_${problemStatistic.anchorId}" data-toggle="tab">${problemStatistic.problemStatisticType.formattedName()}</a> <a href="#problemStatistic_${problemStatistic.anchorId}" data-toggle="tab">${problemStatistic.problemStatisticType.label}</a>
</li> </li>
<#assign firstRow = false> <#assign firstRow = false>
</#list> </#list>
<#list problemBenchmarkResult.extractSingleStatisticTypeList() as singleStatisticType> <#list problemBenchmarkResult.extractSingleStatisticTypeList() as singleStatisticType>
<li<#if firstRow && !subSingleSummaryChartShown> class="active"</#if>> <li<#if firstRow && !subSingleSummaryChartShown> class="active"</#if>>
<a href="#singleStatistic_${problemBenchmarkResult.anchorId}_${singleStatisticType.anchorId}" data-toggle="tab">${singleStatisticType.formattedName()}</a> <a href="#singleStatistic_${problemBenchmarkResult.anchorId}_${singleStatisticType.anchorId}" data-toggle="tab">${singleStatisticType.label}</a>
</li> </li>
<#assign firstRow = false> <#assign firstRow = false>
</#list> </#list>
Expand Down

0 comments on commit 7b9b03f

Please sign in to comment.