Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Reacting on page changes in a multi-page editor from a separate view
Reacting on page changes in a multi-page editor from a separate view [message #336845] Tue, 07 July 2009 18:03 Go to next message
Ola Spjuth is currently offline Ola Spjuth
Messages: 47
Registered: July 2009
Member
Hi,

How can I, in a separate View, react on the user switching page (tab) in
a multi-page editor?

Another question (and possible workaround for me): Can I register a
listener for context changes?

Thanks,

/Ola
Re: Reacting on page changes in a multi-page editor from a separate view [message #336849 is a reply to message #336845] Wed, 08 July 2009 06:49 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
Ola Spjuth wrote:
> Another question (and possible workaround for me): Can I register a
> listener for context changes?

You can add a listener to the IContextService

- Prakash
---
http://blog.eclipse-tips.com
Re: Reacting on page changes in a multi-page editor from a separate view [message #336861 is a reply to message #336845] Wed, 08 July 2009 12:30 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

In 3.5 MultiPageEditorPart is a
org.eclipse.jface.dialogs.IPageChangeProvider

Prior to 3.5, you could only get page change events if you are the
actual provider of the editor and you implement something.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:Programmaticly activate a menu-action?
Next Topic:[intro] Can css contain platform URL locations of images?
Goto Forum:
  


Current Time: Sat Sep 20 12:19:46 GMT 2014

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

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