aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-03-29 19:19:08 +0200
committerFabrice Bellingard <bellingard@gmail.com>2012-03-29 19:19:08 +0200
commitca69df1a7c175703dbac9d321e93d2fc13847f83 (patch)
tree9431bd56eeb7adcd4572c541255e798bf098753d /plugins
parent2dab91a6c29fe829b1413a6ec469ff82a20ee1a7 (diff)
downloadsonarqube-ca69df1a7c175703dbac9d321e93d2fc13847f83.tar.gz
sonarqube-ca69df1a7c175703dbac9d321e93d2fc13847f83.zip
SONAR-3287 Update UI to adapt labels to deletable resource
=> Make it possible to delete a View or a Developer (resources and snapshots) through the Sonar UI
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/DefaultPurgeTask.java2
-rw-r--r--plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties13
2 files changed, 13 insertions, 2 deletions
diff --git a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/DefaultPurgeTask.java b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/DefaultPurgeTask.java
index afee357487a..7df47385763 100644
--- a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/DefaultPurgeTask.java
+++ b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/DefaultPurgeTask.java
@@ -58,7 +58,7 @@ public class DefaultPurgeTask implements PurgeTask {
}
public PurgeTask delete(long resourceId) {
- purgeDao.deleteProject(resourceId);
+ purgeDao.deleteResourceTree(resourceId);
return this;
}
diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties
index 9f9c773f0db..28ea72edd23 100644
--- a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties
+++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties
@@ -312,7 +312,6 @@ project_settings.page=Settings
project_links.page=Links
project_exclusions.page=Exclusions
project_history.page=History
-project_deletion.page=Project Deletion
quality_profiles.page=Quality Profiles
reviews.page=Reviews
settings.page=General Settings
@@ -326,6 +325,7 @@ violations_drilldown.page=Violations Drilldown
update_center.page=Update Center
lcom4_viewer.page=LCOM4
dependencies.page=Dependencies
+resource_deletion.page={0} Deletion
# GWT pages
@@ -918,6 +918,17 @@ project_history.event_already_exists=Event "{0}" already exists.
#------------------------------------------------------------------------------
#
+# PROJECT (RESOURCE) DELETION PAGE
+#
+#------------------------------------------------------------------------------
+
+project_deletion.delete_resource=Delete {0}
+project_deletion.operation_cannot_be_undone=This operation can not be undone.
+project_deletion.delete_resource_confirmation=Are you sure you want to delete this {0}?
+
+
+#------------------------------------------------------------------------------
+#
# TIME MACHINE
#
#------------------------------------------------------------------------------