summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-09 11:02:23 (EDT)
committerEike Stepper2007-10-09 11:02:23 (EDT)
commit53345927a79b9ac046b9c4859e1ddee0d2a220ed (patch)
treeae9700c95d6a82bd5f43c478a36f7f1c1db35e65
parent087826ff0b26664f7bc1c71ad250e372a7426497 (diff)
downloadcdo-53345927a79b9ac046b9c4859e1ddee0d2a220ed.zip
cdo-53345927a79b9ac046b9c4859e1ddee0d2a220ed.tar.gz
cdo-53345927a79b9ac046b9c4859e1ddee0d2a220ed.tar.bz2
[205668] Provide buddies example
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205668
-rw-r--r--plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/CollaborationInitiatedIndication.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/CollaborationInitiatedIndication.java b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/CollaborationInitiatedIndication.java
index 279986b..da6a26c 100644
--- a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/CollaborationInitiatedIndication.java
+++ b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/protocol/CollaborationInitiatedIndication.java
@@ -14,6 +14,7 @@ import org.eclipse.net4j.buddies.IBuddySession;
import org.eclipse.net4j.buddies.internal.protocol.ProtocolConstants;
import org.eclipse.net4j.buddies.protocol.IBuddy;
import org.eclipse.net4j.internal.buddies.BuddyCollaboration;
+import org.eclipse.net4j.internal.buddies.ClientBuddy;
import org.eclipse.net4j.internal.buddies.Self;
import org.eclipse.net4j.signal.Indication;
import org.eclipse.net4j.util.io.ExtendedDataInputStream;
@@ -60,5 +61,9 @@ public class CollaborationInitiatedIndication extends Indication
BuddyCollaboration collaboration = new BuddyCollaboration(collaborationID, buddies);
LifecycleUtil.activate(collaboration);
self.addCollaboration(collaboration);
+ for (IBuddy buddy : buddies)
+ {
+ ((ClientBuddy)buddy).addCollaboration(collaboration);
+ }
}
}