|
|
|
|
|
|
Re: How to validate incoming connections? [message #1692441 is a reply to message #1692299] |
Wed, 15 April 2015 13:30  |
Eclipse User |
|
|
|
Um, nope. Even something as simple as changing an attribute value will cause EMF to fire a model change notification. The only way to turn off notification that I know of (and this should be used with caution!) is to turn the EObject's notification delivery flag off like this:
void updateMyObject(EObject object) {
try {
object.eSetDeliver(false);
object.setSomeAttribute("Hello world");
}
finally {
object.eSetDeliver(true);
}
}
As far as your chicken & egg problem is concerned, this has been a problem for me as well. If all else fails, you can always inject an eAdapter during file loading by providing your own Bpmn2ModelerResourceImpl implementation. Take a look at how this is done in DroolsResourceFactoryImpl and DroolsResourceImpl in the jBPM plugin.
[Updated on: Wed, 15 April 2015 13:30] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.05220 seconds