|
Re: Howto intercept deletion of figures [message #223619 is a reply to message #223563] |
Tue, 31 March 2009 11:49 |
Eclipse User |
|
|
|
Originally posted by: cayla_sha.gmx.net
there are this EditHelpers where you could overwrite
getDestroyElementCommand, but I think that`s too late in the
deletion-process for you.
Robert Wloch schrieb:
> Hello everyone,
>
> Already for days I'm trying to find a way to hook into the process of
> deleting selected figures when the delete key is pressed.
>
> I digged deep into GMF down to PromptingDeleteAction and its
> createCommand(List). Is there any way to subclass that class and hook
> the subclass back into my generated GMF editor?
>
> I need to semantically analyze the list of selected objects and
> optionally show a dialog to abort the delete command. From what I've
> seen and debugged the last week my guess is, there's no better way than
> subclassing PromptingDeleteAction and override createCommand(List).
>
> Any idea is appreciated.
>
> Cheers,
> Rob
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03127 seconds