EMF Forms notification in e4 [message #1704914] |
Mon, 10 August 2015 13:18  |
Eclipse User |
|
|
|
Hi
I wonder how we can subscribe to notification in EMF Forms (or just EMF) - do we need to write adapters and add them to everey EObject like this: eObj.eAdapters().add(myLsitener)?
How to use e4 eventing system, so the handler execution will be triggered? Or what is the recommended way to be notified of model changes coming from EMF Froms part in my custom part?
is it to much for EMF Forms community to provide working CRUD sample? Always I only find snippets and have no idea o the big picture... How can I get this? All the books all outdated, the frameworks docs are incomplete - do I need to join some confidential alliance to get this?
Thanks in advance
|
|
|
|
|
|
|
|
|
|
|
Re: EMF Forms notification in e4 [message #1709015 is a reply to message #1708931] |
Wed, 23 September 2015 06:14   |
Eclipse User |
|
|
|
Hi Alexander,
You had a question about EMF notifications initially and about a good
way of dealing with them. So if you want to listen to all changes in a
model instance, you can use a EContentAdapter (provided by EMF). An
alternative would be the ChangeBroker I mentioned. The broker uses the
EContentAdapter to retrieve notifications internally anyways, so it is
basically just another more comfortable API to do the same thing. As an
example, it allows for filtering the event you want to be notified about
already during the registration.
As I also mentioned, the Changebroker is not yet part of the EMF Client
Platform SDK, so we do not consider this to be a core feature yet. That
is why we did not blog about it yet. As I also mentioned, I will
probably blog about it soon as part of introducing the 1.7.0 release,
but I do not have a defined date for that blog post, yet.
You answer sounds pretty angry. Insulting people, who work on a
framework that you might use completely for free and being angry at
people who try to help you in a support forum without charging for that
does usually not help you getting better support. Sorry to say that so
clear.
If you need guaranteed support with defined response times, you need to
get professional support. If you need a new feature to be available in a
certain release, you should consider sponsored development. We and most
other companies active in this forum offer this as a service.
As you might have noticed, you also get help, if you do not pay for
that, as for example all questions in this forum are usually answered
within a single day. Also most committer teams fix critical bugs without
charging for that and even develop new features. However, that is really
on a voluntary basis.
I hope I could help.
Best regards
Jonas
Am 22.09.2015 um 16:29 schrieb Alexander Zavodnikov:
> ..nothing - no blog and no other docs.. are you dammin serious?
> What is your hope regarding user acceptance for EMF Forms? You suggest
> to use some undocumented, maybe experimental things, which may
> disappear in next minor release...
> Do you really think that developers, which have do deliver reliable
> solutions go this way? ...laughable
--
--
Jonas Helming
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
|
|
|
Re: EMF Forms notification in e4 [message #1709020 is a reply to message #1709015] |
Wed, 23 September 2015 07:16  |
Eclipse User |
|
|
|
...thanks for answering
I noticed well, that it's all for free... but there are other frameworks for free, too. And somehow they do most things better. Again, it's only my opinion. Please don't take my negativity into account, It's my own problem... and for the record: up to now i donated 30€ to Eclipse, so I am not that kind of people...
...the solution is simple:
private AdapterImpl changeListener = new AdapterImpl() {
@Override
public void notifyChanged(final Notification msg) {
// react on changes
}
};
private void addChangeListener(EObject eObj) {
eObj.eAdapters().add(changeListener);
for (EObject e : eObj.eContents()) {
addChangeListener(e);
}
}
then you can do:
[Updated on: Sat, 26 September 2015 12:06] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.10795 seconds