From f5e7cabed70e681245a70da35700124ca805af76 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 4 Dec 2012 22:35:33 +0100 Subject: [PATCH] SONAR-3825 move treemap from prototypejs to jquery --- .../plugins/core/DefaultResourceTypes.java | 10 +- .../org/sonar/api/resources/ResourceType.java | 8 +- .../sonar/api/resources/ResourceTypes.java | 2 +- .../sonar/api/resources/ResourceTypeTest.java | 26 +-- .../api/resources/ResourceTypesTest.java | 12 +- .../app/controllers/treemap_controller.rb | 64 +++--- .../models/measure_filter_display_treemap.rb | 21 +- .../main/webapp/WEB-INF/app/models/user.rb | 2 - .../views/measures/_display_treemap.html.erb | 22 +- .../main/webapp/javascripts/application.js | 196 ++++++++---------- .../src/main/webapp/stylesheets/style.css | 5 +- 11 files changed, 176 insertions(+), 192 deletions(-) diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/DefaultResourceTypes.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/DefaultResourceTypes.java index 72bd2cb244e..4cbe473af28 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/DefaultResourceTypes.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/DefaultResourceTypes.java @@ -38,28 +38,28 @@ public final class DefaultResourceTypes extends ExtensionProvider implements Bat .setProperty("modifiable_history", true) .setProperty("hasRolePolicy", true) .setProperty("updatable_key", true) - .setProperty("supports_measure_filters", true) + .setProperty("supportsMeasureFilters", true) .setProperty("comparable", true) .build()) .addType(ResourceType.builder(Qualifiers.MODULE) .setProperty("updatable_key", true) - .setProperty("supports_measure_filters", true) + .setProperty("supportsMeasureFilters", true) .build()) .addType(ResourceType.builder(Qualifiers.DIRECTORY) - .setProperty("supports_measure_filters", true) + .setProperty("supportsMeasureFilters", true) .build()) .addType(ResourceType.builder(Qualifiers.PACKAGE) .build()) .addType(ResourceType.builder(Qualifiers.FILE) .hasSourceCode() - .setProperty("supports_measure_filters", true) + .setProperty("supportsMeasureFilters", true) .build()) .addType(ResourceType.builder(Qualifiers.CLASS) .hasSourceCode() .build()) .addType(ResourceType.builder(Qualifiers.UNIT_TEST_FILE) .hasSourceCode() - .setProperty("supports_measure_filters", true) + .setProperty("supportsMeasureFilters", true) .build()) .addRelations(Qualifiers.PROJECT, Qualifiers.MODULE) diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceType.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceType.java index bda5124bff6..93b6a0da86b 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceType.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceType.java @@ -40,7 +40,7 @@ import java.util.Map; *

*