Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Implementing custom delete action
Implementing custom delete action [message #59293] Thu, 05 October 2006 05:53 Go to next message
Eclipse UserFriend
Originally posted by: ganesh.mohan.hp.com

Hello,

I am trying to implement a logic where the deletion of an element from the
editor depends on certain condition.

From the XXXTypeItemsemanticEditPolicy, i could make this check in the
getElementToDestroy() method. Even though the reference to the element
exists, the shape is removed from the editor. How would i implement my own
DeleteAction on an element.

Thanx,
Ganesh
Re: Implementing custom delete action [message #60079 is a reply to message #59293] Fri, 06 October 2006 11:51 Go to previous message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
Ganesh,

Can you return an unexecutable command in that editpolicy? This should
disable the action.

- Cherie

Ganesh Mohan wrote:
> Hello,
>
> I am trying to implement a logic where the deletion of an element from
> the editor depends on certain condition.
> From the XXXTypeItemsemanticEditPolicy, i could make this check in the
> getElementToDestroy() method. Even though the reference to the element
> exists, the shape is removed from the editor. How would i implement my
> own DeleteAction on an element.
>
> Thanx,
> Ganesh
>
Previous Topic:Drawing custom decorations in Compartment-Nodes
Next Topic:Copy GMF diagram coordinates to model
Goto Forum:
  


Current Time: Sat Jul 27 12:24:27 GMT 2024

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

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

Back to the top