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 #514703] Tue, 16 February 2010 07:08 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 #514812 is a reply to message #514703] Tue, 16 February 2010 12:28 Go to previous 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
Previous Topic:"required items could not be found" error during ECF install
Next Topic:r-osgi, File-based discovery
Goto Forum:
  


Current Time: Thu Apr 18 20:37:51 GMT 2024

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

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

Back to the top