| bug? about the DeleteAction [message #165654] |
Wed, 26 January 2005 05:28  |
|
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 #165842 is a reply to message #165811] |
Wed, 26 January 2005 23:19   |
|
Originally posted by: zhlmmc.hotmail.com
Of course,I invoke it.
I wander,why the Redo and Undo action work well,but the DeleteAction
doesn't work.
Pratik Shah wrote:
> Do you invoke updateActionBars() after setting the new global action
> handler?
> "zhlmmc" <zhlmmc@hotmail.com> wrote in message
> news:ct7rbt$e9i$1@www.eclipse.org...
>> 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 #166034 is a reply to message #165654] |
Thu, 27 January 2005 14:54   |
|
Originally posted by: none.us.ibm.com
See GraphicalEditor#selectionChanged(). You shouldn't expect to use
MultiPageEditor and have the editors inside work normally. See bug 46207.
"zhlmmc" <zhlmmc@hotmail.com> wrote in message
news:ct7rbt$e9i$1@www.eclipse.org...
> 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 #166171 is a reply to message #166034] |
Sat, 29 January 2005 05:23   |
|
Originally posted by: zhlmmc.hotmail.com
I have read the bug reported at Bugzilla,but I don't understand it clearly.
I'm a novice to GEF.
Is there any example about GraphicalEditpr 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);
}
Any Problem?
Randy Hudson wrote:
> See GraphicalEditor#selectionChanged(). You shouldn't expect to use
> MultiPageEditor and have the editors inside work normally. See bug 46207.
> "zhlmmc" <zhlmmc@hotmail.com> wrote in message
> news:ct7rbt$e9i$1@www.eclipse.org...
>> 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 #166256 is a reply to message #166034] |
Sun, 30 January 2005 04:21   |
|
Originally posted by: zhlmmc.hotmail.com
I have got it.
I should update the selectionActions by myself but not delegate it to the
super class.
Does this problem will be solved in 3.1?
Randy Hudson wrote:
> See GraphicalEditor#selectionChanged(). You shouldn't expect to use
> MultiPageEditor and have the editors inside work normally. See bug 46207.
> "zhlmmc" <zhlmmc@hotmail.com> wrote in message
> news:ct7rbt$e9i$1@www.eclipse.org...
>> 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  |
|
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.01983 seconds