Skip to main content


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
Eclipse UserFriend
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.Friend
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 WebsterFriend
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: Mon Dec 30 16:47:51 GMT 2024

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

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

Back to the top