Once again: DeleteAction in a MultiPageEditor [message #464817] |
Thu, 15 March 2007 19:41 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03536 seconds