diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-21 11:14:33 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-21 11:14:33 +0000 |
commit | 21c0382866707c4e77df1c314bf612f6d0b947a0 (patch) | |
tree | 984df6faf251269a770bc8ea4f5e3bf9aa4b43aa /sonar-gwt-api/src | |
parent | 157d76eb67fb4cf519fe45d9d2e194b2c15e831b (diff) | |
download | sonarqube-21c0382866707c4e77df1c314bf612f6d0b947a0.tar.gz sonarqube-21c0382866707c4e77df1c314bf612f6d0b947a0.zip |
GWT API: add the method Links.openRulePopup()
Diffstat (limited to 'sonar-gwt-api/src')
-rw-r--r-- | sonar-gwt-api/src/main/java/org/sonar/gwt/Links.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sonar-gwt-api/src/main/java/org/sonar/gwt/Links.java b/sonar-gwt-api/src/main/java/org/sonar/gwt/Links.java index a20bc08efee..9ec02ad65cf 100644 --- a/sonar-gwt-api/src/main/java/org/sonar/gwt/Links.java +++ b/sonar-gwt-api/src/main/java/org/sonar/gwt/Links.java @@ -103,4 +103,13 @@ public final class Links { String url = urlForResourcePage(pageId, resourceIdOrKey, query); Window.Location.assign(url); } + + public static void openRulePopup(final String ruleIdOrKey) { + openRulePopup(ruleIdOrKey, DEFAULT_POPUP_HTML_FEATURES); + } + + public static void openRulePopup(final String ruleIdOrKey, final String htmlFeatures) { + String url = urlForRule(ruleIdOrKey, false); + Window.open(url, "rule", htmlFeatures); + } } |