Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » Getting all participants of all open IRC channels
Getting all participants of all open IRC channels [message #625137] Tue, 16 February 2010 11:53 Go to next message
Philipp Kursawe is currently offline Philipp KursaweFriend
Messages: 135
Registered: July 2009
Senior Member
Hello,

for my "CopyTo" plugin I would like to get a list of participants of
each IRC channel currently open in the active workbench page.
I am currently searching for all
"org.eclipse.ecf.presence.ui.chatroom.ChatRoomManagerView" view
references and use the ChatRoomManagerView.getRootChatRoomContainer() to
fetch the root container. However I am unable to extract the channels
list from it and then from each channel the list of participants. It
seems that the IChatRoomInfo only exposes the number of participants but
not their IDs.

Any ideas?

Phil
Re: Getting all participants of all open IRC channels [message #625139 is a reply to message #625137] Tue, 16 February 2010 17:23 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hello Philipp,

Philipp Kursawe wrote:
> Hello,
>
> for my "CopyTo" plugin I would like to get a list of participants of
> each IRC channel currently open in the active workbench page.
> I am currently searching for all
> "org.eclipse.ecf.presence.ui.chatroom.ChatRoomManagerView" view
> references and use the ChatRoomManagerView.getRootChatRoomContainer() to
> fetch the root container. However I am unable to extract the channels
> list from it and then from each channel the list of participants. It
> seems that the IChatRoomInfo only exposes the number of participants but
> not their IDs.
>
> Any ideas?


I'm not the author of some of this code (although I am the author of
some of it)...and it was done some time ago...so I'm refreshing my
memory as I go...but with those qualifiers:

In the ChatRoomManagerView is a member variable 'chatRooms', which holds
a Map of chatRoomName->ChatRoom instances...so you can get access to the
channels, which are implemented as ChatRoom instances in UI. A member
variable in the ChatRoom inner class is this IChatRoomContainer (passed
in upon construction) that is the chat room container for that IRC
channel. So this IChatRoomContainer instance represents the individual
channel/chat room.

IChatRoomContainer interface has a method

ID[] getChatRoomParticipants();

This should provide the ID of all the participants within the given
channel/IChatRoomContainer instance.

Thanks,

Scott
Re: Getting all participants of all open IRC channels [message #671145 is a reply to message #625139] Mon, 16 May 2011 21:45 Go to previous message
peter  is currently offline peter Friend
Messages: 4
Registered: May 2011
Junior Member
I have a question about getting Presence of every participant in a chat room. Is that any way for me to use participantIDs from ID[] participantIDs = getChatRoomParticipants() to get the Presence of every participant in the chat room?
Previous Topic:HTTP POST via ECF
Next Topic:how create project.jar in eclipse
Goto Forum:
  


Current Time: Thu Apr 25 17:14:04 GMT 2024

Powered by FUDForum. Page generated in 0.03327 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top