bug? about the DeleteAction [message #165654] |
Wed, 26 January 2005 05:28  |
Eclipse User |
|
|
|
Originally posted by: zhlmmc.hotmail.com
Everything works well in my PicEditor,but when I set the PicEditor as a
subeditor of my MultiPageEditor,the DeleteAction doesn't work.(Redo and
Undo Action work well)
I have set globalActionHandler in setActivePage() of my
MultiPageContributor:
actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId (),
getAction(editor, ActionFactory.DELETE.getId()));
I refered to the MultiPageEditorExample ,but it didn't help.
What's the problem?
Thanks.
|
|
|
|
|
|
|
|
Re: bug? about the DeleteAction [message #166372 is a reply to message #166171] |
Mon, 31 January 2005 10:38  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
"zhlmmc" <zhlmmc@hotmail.com> escreveu na mensagem
news:ctfo6q$tuv$1@www.eclipse.org...
>I have read the bug reported at Bugzilla,but I don't understand it clearly.
Basiclly, MultiPageEditor is a hack and editor's aren't designed to be
composed this way.
> I'm a novice to GEF.
>
> Is there any example about GraphicalEditor embeded in a MultiPageEditor?
> I write selectionChanged() in my GraphicalEditor like this:
> public void selectionChanged(IWorkbenchPart part, ISelection selection) {
> if (part.getSite().getWorkbenchWindow().getActivePage() == null)
> return;
> super.selectionChanged(part, selection);
> }
Did you look at super and the assumptions it is making?
|
|
|
Powered by
FUDForum. Page generated in 0.03749 seconds