Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-02-08 06:03:31 +0000
committerslewis2007-02-08 06:03:31 +0000
commitd84ee38c95591b1afaf077f5c1e4d43c8ca1935d (patch)
tree320b2314c65dc0cbb58b5ec119e18adedfb8abaf /framework/bundles/org.eclipse.ecf.ui
parent378d41667dc125b59233c7267aeafe09736f1033 (diff)
downloadorg.eclipse.ecf-d84ee38c95591b1afaf077f5c1e4d43c8ca1935d.tar.gz
org.eclipse.ecf-d84ee38c95591b1afaf077f5c1e4d43c8ca1935d.tar.xz
org.eclipse.ecf-d84ee38c95591b1afaf077f5c1e4d43c8ca1935d.zip
Fix for bugs 160126, 172898
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.ui')
-rw-r--r--framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/ChatRoomManagerView.java24
1 files changed, 3 insertions, 21 deletions
diff --git a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/ChatRoomManagerView.java b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/ChatRoomManagerView.java
index f16e90282..bd7f23bcf 100644
--- a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/ChatRoomManagerView.java
+++ b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/ChatRoomManagerView.java
@@ -16,10 +16,8 @@ import java.net.URISyntaxException;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
-import java.util.Collections;
import java.util.Date;
import java.util.Hashtable;
-import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;
@@ -484,11 +482,9 @@ public class ChatRoomManagerView extends ViewPart implements
}
public void handleArrivedInChat(ID participant) {
- chatroomview.handleJoin(participant);
}
public void handleDepartedFromChat(ID participant) {
- chatroomview.handleLeave(participant);
}
});
chatRoomContainer.addListener(new IContainerListener() {
@@ -534,7 +530,7 @@ public class ChatRoomManagerView extends ViewPart implements
IChatRoomMessageSender channelMessageSender;
- private List otherUsers = Collections.synchronizedList(new ArrayList());
+ //private List otherUsers = Collections.synchronizedList(new ArrayList());
IUser localUser;
@@ -858,7 +854,7 @@ public class ChatRoomManagerView extends ViewPart implements
IPresence.Type.AVAILABLE);
Participant p = new Participant(fromID);
if (isAdd) {
- if (localUser == null && !otherUsers.contains(fromID)) {
+ if (localUser == null) {
localUser = p;
}
addParticipant(p);
@@ -921,8 +917,7 @@ public class ChatRoomManagerView extends ViewPart implements
if (p != null) {
ID id = p.getID();
if (id != null) {
- if (otherUsers.contains(id))
- appendText(outputText, new ChatLine("(" + getDateTime()
+ appendText(outputText, new ChatLine("(" + getDateTime()
+ ") " + trimUserID(id) + " left", null));
memberViewer.remove(p);
}
@@ -937,19 +932,6 @@ public class ChatRoomManagerView extends ViewPart implements
memberViewer.remove(o);
}
}
-
- public void handleJoin(ID user) {
- if (disposed)
- return;
- otherUsers.add(user);
- }
-
- public void handleLeave(ID user) {
- if (disposed)
- return;
- otherUsers.remove(user);
- }
-
}
protected void handleInputLine(String line) {

Back to the top