[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: overload add operation in EMF generated editor

Marcin,

Comments.

Marcin Cylke wrote:
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.
Yes. Just create a compound command that does the add and the other stuff too.

The same thinkg I'd like to do with other commands, like Delete, or Copy. So I'm especially looking for more generic solutions.
Item providers act like a factory for commands so specializing those commands to do additional things is fine.

Thanks in advance for any answers.

Marcin