Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Multipage editor with zoom
Multipage editor with zoom [message #159152] Mon, 22 November 2004 22:35 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Source code of Randy's GEF tutorial
Next Topic:How to implement Part's Property changes as a Command
Goto Forum:
  


Current Time: Thu Sep 19 12:31:50 GMT 2024

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

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

Back to the top