aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-core-plugin
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-03-29 16:49:40 +0200
committerFabrice Bellingard <bellingard@gmail.com>2012-03-29 16:49:40 +0200
commit2dab91a6c29fe829b1413a6ec469ff82a20ee1a7 (patch)
treed4fb5aeeea65e863553f35c38ba08985a4307d31 /plugins/sonar-core-plugin
parent8fcbd9607c8c18cf8b91e8b26da46721de5db11e (diff)
downloadsonarqube-2dab91a6c29fe829b1413a6ec469ff82a20ee1a7.tar.gz
sonarqube-2dab91a6c29fe829b1413a6ec469ff82a20ee1a7.zip
SONAR-3287 Add properties on ResourceType and use them in Ruby
=> To be able to tell, for instance, that a resource is "deletable" and so to display the "Deletion" link accordingly.
Diffstat (limited to 'plugins/sonar-core-plugin')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/DefaultResourceTypes.java2
1 files changed, 1 insertions, 1 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 aed659ccdfe..c03e994f470 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
@@ -34,7 +34,7 @@ public final class DefaultResourceTypes extends ExtensionProvider implements Bat
public ResourceTypeTree provide() {
return ResourceTypeTree.builder()
- .addType(ResourceType.builder(Qualifiers.PROJECT).build())
+ .addType(ResourceType.builder(Qualifiers.PROJECT).setProperty("deletable", "true").build())
.addType(ResourceType.builder(Qualifiers.MODULE).build())
.addType(ResourceType.builder(Qualifiers.DIRECTORY).build())
.addType(ResourceType.builder(Qualifiers.PACKAGE).build())