[Yanel-commits] rev 45021 -
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client
michi at wyona.com
michi at wyona.com
Wed Oct 14 16:41:08 CEST 2009
Author: michi
Date: 2009-10-14 16:41:07 +0200 (Wed, 14 Oct 2009)
New Revision: 45021
Modified:
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/PolicyListBoxWidget.java
Log:
formatting fixed
Modified: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/PolicyListBoxWidget.java
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/PolicyListBoxWidget.java 2009-10-14 14:38:18 UTC (rev 45020)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/PolicyListBoxWidget.java 2009-10-14 14:41:07 UTC (rev 45021)
@@ -314,25 +314,25 @@
StringBuffer sb = new StringBuffer(type + ":");
if (availableRights != null) {
- sb.append("(");
- for (int i = 0; i < availableRights.length; i ++) {
- boolean rightExists = false;
- for (int k = 0; k < rights.length; k ++) {
- if (availableRights[i].getId().equals(rights[k].getId()) && rights[k].getPermission()) {
- rightExists = true;
- break;
+ sb.append("(");
+ for (int i = 0; i < availableRights.length; i ++) {
+ boolean rightExists = false;
+ for (int k = 0; k < rights.length; k ++) {
+ if (availableRights[i].getId().equals(rights[k].getId()) && rights[k].getPermission()) {
+ rightExists = true;
+ break;
+ }
}
+ if (i > 0) {
+ sb.append(",");
+ }
+ if (rightExists) {
+ sb.append(availableRights[i].getId());
+ } else {
+ sb.append("-");
+ }
}
- if (i > 0) {
- sb.append(",");
- }
- if (rightExists) {
- sb.append(availableRights[i].getId());
- } else {
- sb.append("-");
- }
- }
- sb.append(")");
+ sb.append(")");
} else {
Window.alert("Available rights not loaded yet!");
}
More information about the Yanel-commits
mailing list