[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ecf-dev] org.eclipse.ecf.presence.IFQID
|
Hi Eugen,
I'm looking at this now and need to ask...where are you calling the code
IDFQ idfq = (IDFQ) id.getAdapter(IDFQ.class);
idfq.getResourceName();
I guess what I'm asking is: how do you get the 'id' above (is it a
listener and if so which one).
Thanks,
Scott
Eugen Reiswich wrote:
Hi folks,
I'm trying to work with the above mentioned ID to get the resource for
an XMPP-ID. According to this
solution: https://bugs.eclipse.org/bugs/show_bug.cgi?id=246155 I
should be able to call:
IDFQ idfq = (IDFQ) id.getAdapter(IDFQ.class);
idfq.getResourceName();
But unfortunately this doesn't work for me. The resource I get is
always empty. I'm basically trying to display online user in a tree
with the associated resource using XMPP as protocol. When I debug my
code my IRosterEntry-objects are all listed without a resource. This
is the way how I retrieve the IRoster:
IPresenceContainerAdapter adapter = (IPresenceContainerAdapter)
this.containter
.getAdapter(IPresenceContainerAdapter.class);
IRosterManager rosterManager = adapter.getRosterManager();
IRoster roster = rosterManager.getRoster();
I would really appreciate if someone could help me with my problem.
Cheers,
Eugen
------------------------------------------------------------------------
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev