[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: Problems with label referencing a derived attribute
|
Hello Anthony,
You are currently listening Element instance, so you can get any notifications
concerning Element attribute/reference changes (like: Element.action) but
to be able to receive notifications concerning Action attributes you have
to listen corresponding Action instance. In other words, you have to call:
ActionNameAdapterFactory.INSTANCE.adapt(this.getAction(), ActionNameAdapter.class);
BTW, you don't need to use AdapterFactory - you can add/remove EMF adapters
by manually instantiating corresponding class + calling:
Notifier.eAdapters().add(adapter);
Notifier.eAdapters().remove(adapter);
-----------------
Alex Shatalin