Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » Getting all participants of all open IRC channels
Getting all participants of all open IRC channels [message #514703] Tue, 16 February 2010 07:08 Go to next message
Philipp Kursawe is currently offline Philipp Kursawe
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 #514812 is a reply to message #514703] Tue, 16 February 2010 12:28 Go to previous message
Scott Lewis is currently offline Scott Lewis
Messages: 971
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
Previous Topic:"required items could not be found" error during ECF install
Next Topic:r-osgi, File-based discovery
Goto Forum:
  


Current Time: Thu Oct 23 09:33:05 GMT 2014

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

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