Implementing custom delete action [message #59293] |
Thu, 05 October 2006 01:53  |
Eclipse User |
|
|
|
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 07:51  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.05968 seconds