Multiple EditPolicies/Deleting multiple elements [message #205480] |
Sun, 14 September 2008 20:53  |
Eclipse User |
|
|
|
Hi,
It is possible to provide more than one EditPolicy for an EditPart for
the same key? I noticed that in GMF 2.0.1, installing new EditPolicies
just overwrites those that already exist for the same key.
What I would like to do is to install custom functionality to handle
element deletion, without having to override the generated GMF code.
i.e. When element X is deleted, it should also delete element Y and
connection Z. My thought was to handle the getDestroyElementCommand() or
getSemanticCommand(DestroyElementRequest) to add additional commands,
and install this functionality by adding another EditPolicy.
Is it possible to do this without editing the generated GMF code directly?
Thanks :)
Jevon
|
|
|
|
Powered by
FUDForum. Page generated in 0.03704 seconds