diff options
author | slewis | 2006-05-27 19:06:17 +0000 |
---|---|---|
committer | slewis | 2006-05-27 19:06:17 +0000 |
commit | 758a7d84ff336dd00c2146592bcbc03b08385c3c (patch) | |
tree | 97b8b890c437c8e6834a3c80a0255b7e97fd92fe | |
parent | 4edc987a4fd71e999b63724f7f898662c4be6b76 (diff) | |
download | org.eclipse.ecf-758a7d84ff336dd00c2146592bcbc03b08385c3c.tar.gz org.eclipse.ecf-758a7d84ff336dd00c2146592bcbc03b08385c3c.tar.xz org.eclipse.ecf-758a7d84ff336dd00c2146592bcbc03b08385c3c.zip |
Fixed for spurious error log messages and UI handling of carriage return line feed
-rw-r--r-- | framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/RosterView.java | 1 | ||||
-rw-r--r-- | framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/TextChatComposite.java | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/RosterView.java b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/RosterView.java index 404d64d84..878a1735a 100644 --- a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/RosterView.java +++ b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/RosterView.java @@ -1324,6 +1324,7 @@ public class RosterView extends ViewPart implements IChatRoomViewCloseListener { public void handleMessage(ID groupID, ID fromID, ID toID, IMessageListener.Type type, String subject, String message) { ChatWindow window = openChatWindowForTarget(fromID); + System.out.println("handleMessage("+groupID+","+fromID+","+toID+","+type+","+subject+","+message+")"); // finally, show message if (window != null) { window.handleMessage(fromID, toID, type, subject, message); diff --git a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/TextChatComposite.java b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/TextChatComposite.java index 90ee9e782..a83d03518 100644 --- a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/TextChatComposite.java +++ b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/TextChatComposite.java @@ -324,7 +324,7 @@ public class TextChatComposite extends Composite { int beforeMessageIndex = st.getText().length(); - st.append(text.getText()); + st.append(text.getText().trim()); if (text.getOriginator() == null) { StyleRange sr = new StyleRange(); @@ -353,7 +353,7 @@ public class TextChatComposite extends Composite { protected void handleEnter() { String text = textinput.getText().trim(); - if(text.length() > 0) sendTextLineInput(text); + if(text != null) sendTextLineInput(text); clearInput(); isTyping = false; |