Where to manipulate node creation? [message #137921] |
Wed, 20 June 2007 09:50  |
Eclipse User |
|
|
|
Originally posted by: snej_NO-SPAM_.esuark.de
Hi Newsgroup,
i want to make some changes programmatically when a node is created. I
read a lot of creation commands and i think that is where i have to
start, but where do i find those? Do i have to override a method from
the XXXEditPart like the handleNotificationEvent() method or similar?
Is there any workflow map or something similar where you can see what
happens (so which methods are called and which classes are involved) in
what order if a node/link is created? I mean, if you don't know the
"hole stuff", it could be kind of difficult to get a starting point ...
regards
jens
|
|
|
|
|
|
|
|
Re: Where to manipulate node creation? [message #139860 is a reply to message #137921] |
Wed, 27 June 2007 06:44  |
Eclipse User |
|
|
|
Originally posted by: 5d5.mail.ru
Typically elements are created by CreateElementCommand and it's
subclasses. GMF tooling generates dedicated creation commands for all
diagram elements. You may override doDefaultElementCreation() method to
init newly created elements as needed.
Jens Krause wrote:
> Hi Newsgroup,
>
> i want to make some changes programmatically when a node is created. I
> read a lot of creation commands and i think that is where i have to
> start, but where do i find those? Do i have to override a method from
> the XXXEditPart like the handleNotificationEvent() method or similar?
>
> Is there any workflow map or something similar where you can see what
> happens (so which methods are called and which classes are involved) in
> what order if a node/link is created? I mean, if you don't know the
> "hole stuff", it could be kind of difficult to get a starting point ...
>
> regards
> jens
|
|
|
Powered by
FUDForum. Page generated in 0.04047 seconds