summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-05-03 08:50:20 (EDT)
committerpelder2006-05-03 08:50:20 (EDT)
commit65a6a07a07b69dcb3edf1dc451ba5265bfba74f8 (patch)
tree94f44be194ca876287e084820dfee393d223206d
parentad0b0f8b75ed6bdc9950c0013b86da59c3e3d014 (diff)
downloadorg.eclipse.jet-65a6a07a07b69dcb3edf1dc451ba5265bfba74f8.zip
org.eclipse.jet-65a6a07a07b69dcb3edf1dc451ba5265bfba74f8.tar.gz
org.eclipse.jet-65a6a07a07b69dcb3edf1dc451ba5265bfba74f8.tar.bz2
[139934] Improve formatting of console messages.
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/launch/JETStreamMonitor.java27
1 files changed, 14 insertions, 13 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/launch/JETStreamMonitor.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/launch/JETStreamMonitor.java
index a51bb4f..9854381 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/launch/JETStreamMonitor.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/launch/JETStreamMonitor.java
@@ -103,22 +103,23 @@ public class JETStreamMonitor implements IStreamMonitor, RuntimeTagLogger
msg.append('(').append(td.getLine()).append(',').append(td.getCol()).append(')');
}
msg.append(": "); //$NON-NLS-1$
- }
- msg.append(message);
- if(td != null)
- {
- msg.append(System.getProperty("line.separator")); //$NON-NLS-1$
- msg.append(" ").append('<').append(td.getTagName()); //$NON-NLS-1$
- final String[] attrNames = td.getAttributeNames();
- for (int i = 0; i < attrNames.length; i++)
+ if(td != null)
{
- msg.append(' ').append(attrNames[i]).append('=');
- final String value = td.getAttribute(attrNames[i]);
- char quote = value.indexOf('"') >= 0 ? '\'' : '"';
- msg.append(quote).append(value).append(quote);
+ msg.append(" ").append('<').append(td.getTagName()); //$NON-NLS-1$
+ final String[] attrNames = td.getAttributeNames();
+ for (int i = 0; i < attrNames.length; i++)
+ {
+ msg.append(' ').append(attrNames[i]).append('=');
+ final String value = td.getAttribute(attrNames[i]);
+ char quote = value.indexOf('"') >= 0 ? '\'' : '"';
+ msg.append(quote).append(value).append(quote);
+ }
+ msg.append('>');
}
- msg.append('>');
+ msg.append(System.getProperty("line.separator")); //$NON-NLS-1$
+ msg.append(" "); //$NON-NLS-1$
}
+ msg.append(message);
msg.append(System.getProperty("line.separator")); //$NON-NLS-1$
String finalMsg = msg.toString();
return finalMsg;