Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsuen2007-04-19 00:36:54 -0400
committerrsuen2007-04-19 00:36:54 -0400
commit448a683304b118cb9fd39eeb5a3d78af085f69b4 (patch)
treed3613531bc08cd8ba41c2250471176910e4458c3
parent99cc6e953aa1f877ed7fd189b3554f554351de8d (diff)
downloadorg.eclipse.ecf-448a683304b118cb9fd39eeb5a3d78af085f69b4.tar.gz
org.eclipse.ecf-448a683304b118cb9fd39eeb5a3d78af085f69b4.tar.xz
org.eclipse.ecf-448a683304b118cb9fd39eeb5a3d78af085f69b4.zip
Add the delimiter at the beginning so that the text scrolls properly.
-rw-r--r--framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/MessagesView.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/MessagesView.java b/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/MessagesView.java
index fea38c105..ee5e02426 100644
--- a/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/MessagesView.java
+++ b/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/MessagesView.java
@@ -330,6 +330,9 @@ public class MessagesView extends ViewPart {
}
private void append(ID fromID, String body) {
+ if (!isFirstMessage) {
+ chatText.append(Text.DELIMITER);
+ }
int length = chatText.getCharCount();
String name = getUserName(fromID);
if (fromID.equals(remoteID)) {
@@ -340,7 +343,7 @@ public class MessagesView extends ViewPart {
null));
length = chatText.getCharCount();
}
- chatText.append(name + ": " + body + Text.DELIMITER); //$NON-NLS-1$
+ chatText.append(name + ": " + body); //$NON-NLS-1$
chatText.setStyleRange(new StyleRange(length,
name.length() + 1, redColor, null, SWT.BOLD));
form.setMessage(null);
@@ -369,7 +372,7 @@ public class MessagesView extends ViewPart {
blueColor, null));
length = chatText.getCharCount();
}
- chatText.append(name + ": " + body + Text.DELIMITER); //$NON-NLS-1$
+ chatText.append(name + ": " + body); //$NON-NLS-1$
chatText.setStyleRange(new StyleRange(length,
name.length() + 1, blueColor, null, SWT.BOLD));
}

Back to the top