Browse Source

GWT API: add the method Links.openRulePopup()

tags/2.6
simonbrandhof 13 years ago
parent
commit
21c0382866
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      sonar-gwt-api/src/main/java/org/sonar/gwt/Links.java

+ 9
- 0
sonar-gwt-api/src/main/java/org/sonar/gwt/Links.java View File

@@ -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);
}
}

Loading…
Cancel
Save