Multipage editor with zoom [message #159152] |
Mon, 22 November 2004 22:35 |
Eclipse User |
|
|
|
Originally posted by: none.none.com
Hi,
I have a multipage editor with two GEF editors, each one having a zoom. The
zoom actions are in the toolbar, contributed to the Multipage editor. I
can't have the zoom working for both GEF editors, it works for one and not
for the other. I also found that if I switch tab inside the multipage
editor, then select another part of the workbench (any view), then select
the editor again, now the active GEF editor is hooked to the zoom, and the
other one is unhooked. The problem seems that the Action bar doesn't know it
needs to get the actions from the registry when switching tabs. So I added a
call like this in MultipageEditor.pagechanged:
SubActionBars bars = (SubActionBars)
((PartSite)this.getSite()).getActionBars();
bars.partChanged(this);
But it still doesn't work, what else happens when I select a Part in the
workbench, and select the editor again?
Thanks,
David
|
|
|
Re: Multipage editor with zoom [message #159192 is a reply to message #159152] |
Tue, 23 November 2004 16:22 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
https://bugs.eclipse.org/bugs/show_bug.cgi?id=46207
You need to trigger the retarget action to re-retarget. Or, you need to
target it to another retarget action which know about the pages.
"David Michonneau" <none@none.com> wrote in message
news:cntpjo$br1$1@www.eclipse.org...
> Hi,
>
> I have a multipage editor with two GEF editors, each one having a zoom.
The
> zoom actions are in the toolbar, contributed to the Multipage editor. I
> can't have the zoom working for both GEF editors, it works for one and not
> for the other. I also found that if I switch tab inside the multipage
> editor, then select another part of the workbench (any view), then select
> the editor again, now the active GEF editor is hooked to the zoom, and the
> other one is unhooked. The problem seems that the Action bar doesn't know
it
> needs to get the actions from the registry when switching tabs. So I added
a
> call like this in MultipageEditor.pagechanged:
>
> SubActionBars bars = (SubActionBars)
> ((PartSite)this.getSite()).getActionBars();
> bars.partChanged(this);
>
> But it still doesn't work, what else happens when I select a Part in the
> workbench, and select the editor again?
>
> Thanks,
>
> David
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04489 seconds