Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Once again: DeleteAction in a MultiPageEditor
Once again: DeleteAction in a MultiPageEditor [message #464817] Thu, 15 March 2007 19:41 Go to next message
Eclipse UserFriend
Originally posted by: unidad.gmx.net

Hi NG!

I'm slightly devastated with this MultiPageEditor-Stuff.

I took the Shapes-Example and modified it a bit
and put the whole stuff as one editor-page in a MultiPageEditor.

I have added Zoom and Alignement.
The Zoom-Buttons work, the Align-Buttons work, undo-redo work.
But the delete-Action won't work.

If I start the editor as a single-editor the delete-Action
(org.eclipse.gef.ui.actions.DeleteAction) does work.

Problem 1 in the MultiPageEditor:
The deleteAction is not enabled.

Solution 1:
I've added code to the multipage-editor-version so now
in the selectionChanged-method I check, wether there is
a valid selection and enable/disable the deleteAction - works.

But if I click the delete-button nothing happens.

Any hint would be highly appreciated.

Greetings, Hermann
Re: Once again: DeleteAction in a MultiPageEditor [message #464820 is a reply to message #464817] Thu, 15 March 2007 19:42 Go to previous message
Eclipse UserFriend
Originally posted by: unidad.gmx.net

Forgot: I'm using Eclipse RCP 3.2.1

> Hi NG!
>
> I'm slightly devastated with this MultiPageEditor-Stuff.
>
> I took the Shapes-Example and modified it a bit
> and put the whole stuff as one editor-page in a MultiPageEditor.
>
> I have added Zoom and Alignement.
> The Zoom-Buttons work, the Align-Buttons work, undo-redo work.
> But the delete-Action won't work.
>
> If I start the editor as a single-editor the delete-Action
> (org.eclipse.gef.ui.actions.DeleteAction) does work.
>
> Problem 1 in the MultiPageEditor:
> The deleteAction is not enabled.
>
> Solution 1:
> I've added code to the multipage-editor-version so now
> in the selectionChanged-method I check, wether there is
> a valid selection and enable/disable the deleteAction - works.
>
> But if I click the delete-button nothing happens.
>
> Any hint would be highly appreciated.
>
> Greetings, Hermann
>
>
Previous Topic:Stack view
Next Topic:TreeViewer and traversing nodes for a domain object
Goto Forum:
  


Current Time: Fri Oct 04 15:54:06 GMT 2024

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

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

Back to the top