ToolBar update upon perspective switch [message #643383] |
Mon, 06 December 2010 12:11  |
Eclipse User |
|
|
|
Hi,
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?
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.
|
|
|
Re: ToolBar update upon perspective switch [message #643403 is a reply to message #643383] |
Mon, 06 December 2010 13:34  |
Eclipse User |
|
|
|
Kazimir Hruska wrote:
> Hi,
> 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
visible.
PW
--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
|
|
|
Powered by
FUDForum. Page generated in 0.27068 seconds