EMap notify problem [message #420173] |
Fri, 20 June 2008 06:07  |
Eclipse User |
|
|
|
Hi,
I have an EMap<String, Object> in model, I can add entry but -
I don't receive any notification ( after save resource only ).
I think the problem is adding the adapter to map.
How can I add adapter to EMap ?
Could you help please ?
--
EContentAdapter contentAdapter = new EContentAdapter() {
public void notifyChanged(Notification notification) {
super.notifyChanged(notification);
System.out.println("Notfication received");
}
};
TorrentsFactoryImpl.eINSTANCE.getTorrentsPackage() .getCoreModel_TorrentMap().eAdapters().add(contentAdapter);
--
|
|
|
|
Re: EMap notify problem [message #420179 is a reply to message #420175] |
Fri, 20 June 2008 08:49  |
Eclipse User |
|
|
|
Petr,
Yes, adding an adapter to the meta model, which should not be changing,
rather than to an instance, isn't going to help. :-P
Petr Kalafatic wrote:
> Hi,
> the problem was solved :-)
> Regards Petr
>
>
> --
> coreModel = (CoreModel)
> ClientModel.getTorrentsModel().getContents().get(0);
> coreModel.eAdapters().add(contentAdapter);
> --
>
|
|
|
Powered by
FUDForum. Page generated in 1.20090 seconds