From d090cf92e88b35c5e7f131972d5abc2ac3bfe970 Mon Sep 17 00:00:00 2001 From: rsuen Date: Fri, 13 Apr 2007 21:54:43 +0000 Subject: Externalize strings. --- .../src/org/eclipse/ecf/core/util/LogHelper.java | 20 +++++++++++--------- 1 file 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(); } -- cgit v1.2.3