Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Multiple EditPolicies/Deleting multiple elements
Multiple EditPolicies/Deleting multiple elements [message #205480] Sun, 14 September 2008 20:53 Go to next message
Eclipse UserFriend
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
Re: Multiple EditPolicies/Deleting multiple elements [message #205501 is a reply to message #205480] Mon, 15 September 2008 05:07 Go to previous message
Eclipse UserFriend
Hello Jevon,

For now you can only modify generated code/templates or create your own subclass
of the generated EditPolicy overriding corresponding methods and use it instead
of the standard one.

-----------------
Alex Shatalin
Previous Topic:custom property tab problem
Next Topic:Connection does not persist for the note attachement
Goto Forum:
  


Current Time: Thu May 15 13:22:23 EDT 2025

Powered by FUDForum. Page generated in 0.03704 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top