| [news.eclipse.tools.emf] Re: overload add operation in EMF generated editor |
Marcin,
Comments.
Yes. Just create a compound command that does the add and the other stuff too.Hello
I'm in need of overloading add operation in my generated EMF editor. I have pretty standard code generated from an ECore model. Without modifications.
Generaly. I'd like to do some things upon the addition on objects to my model. I traced the whole "add" process to AddCommand class and am wondering if it is ok, to overload it. And if yes, how should I do it correctly.
Item providers act like a factory for commands so specializing those commands to do additional things is fine.
The same thinkg I'd like to do with other commands, like Delete, or Copy. So I'm especially looking for more generic solutions.
Thanks in advance for any answers.
Marcin