Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsuen2007-04-13 17:54:43 -0400
committerrsuen2007-04-13 17:54:43 -0400
commitd090cf92e88b35c5e7f131972d5abc2ac3bfe970 (patch)
treed1f81ea16910d8c2635fb734f4fab45d62308604 /framework/bundles/org.eclipse.ecf.identity/src
parent7202b3ff753acf5552760186e913c6c1420e3e56 (diff)
downloadorg.eclipse.ecf-d090cf92e88b35c5e7f131972d5abc2ac3bfe970.tar.gz
org.eclipse.ecf-d090cf92e88b35c5e7f131972d5abc2ac3bfe970.tar.xz
org.eclipse.ecf-d090cf92e88b35c5e7f131972d5abc2ac3bfe970.zip
Externalize strings.
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.identity/src')
-rw-r--r--framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/LogHelper.java20
1 files changed, 11 insertions, 9 deletions
diff --git a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/LogHelper.java b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/LogHelper.java
index 0a6540730..92a9764b8 100644
--- a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/LogHelper.java
+++ b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/LogHelper.java
@@ -34,20 +34,22 @@ public class LogHelper {
return IStatus.INFO;
}
}
-
+
/**
* @param status
* @return String the string version of the status
*/
public static String getLogMessage(IStatus status) {
- if (status == null) return "";
- StringBuffer buf = new StringBuffer(status.getClass().getName()+"[");
- buf.append("plugin=").append(status.getPlugin());
- buf.append(";code=").append(status.getCode());
- buf.append(";message=").append(status.getMessage());
- buf.append(";severity").append(status.getSeverity());
- buf.append(";exception=").append(status.getException());
- buf.append(";children=").append(Arrays.asList(status.getChildren())).append("]");
+ if (status == null)
+ return ""; //$NON-NLS-1$
+ StringBuffer buf = new StringBuffer(status.getClass().getName() + '[');
+ buf.append("plugin=").append(status.getPlugin()); //$NON-NLS-1$
+ buf.append(";code=").append(status.getCode()); //$NON-NLS-1$
+ buf.append(";message=").append(status.getMessage()); //$NON-NLS-1$
+ buf.append(";severity").append(status.getSeverity()); //$NON-NLS-1$
+ buf.append(";exception=").append(status.getException()); //$NON-NLS-1$
+ buf.append(";children=").append(Arrays.asList(status.getChildren())) //$NON-NLS-1$
+ .append(']');
return buf.toString();
}

Back to the top