|Re: ToolBar update upon perspective switch [message #643403 is a reply to message #643383]
||Mon, 06 December 2010 18:34
| Paul Webster
Registered: July 2009
Kazimir Hruska wrote:|
> I am working on an RCP application with few perspectives, one of this
> perspectives has editor area disabled because it serves mainly as a
> logging console. I am facing two problems:
> 1) When I open some editor from logging view, it is opened in that
> perspective, I would like to achieve eclipse-like behaviour with "The
> XXX view/editor is associated with YYY perspective.. do you want to
> switch?" dialog. How could I implement it? Or is it already provided?
How is the request to open the editor being done? If you are doing it,
then you would have the opportunity to open a dialog and switch
perspectives before calling openEditor(*).
> 2) When I have some editor opened and switch to the logging perspective,
> the editor is not displayed (and must not be), but its toolbar is (the
> toolbar corresponding to last active editor is shown) - how could I
> force platform to refresh toolbar when editor is not active?
> Refactoring the logging view as an editor is not an option.
There are ways to request that the action bars be updated, but I don't
think it will help. The Editor is still the activeEditor, even if it is
not the activePart, and the editor contributed toolbars should still be
Powered by FUDForum
. Page generated in 0.05788 seconds