Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Listening for Perspective Changes
Listening for Perspective Changes [message #157101] Fri, 16 June 2006 13:55 Go to next message
Charlie Kelly is currently offline Charlie KellyFriend
Messages: 276
Registered: July 2009
Senior Member
I want to make programatic changes after a user changes perspective (via
PerspectiveBar) in an RCP application.

Is there a good way to listen for these changes?

Is the PerspectiveBar already register as a source of events (my code does
not currently register it)?

Thanks

Charlie
Re: Listening for Perspective Changes [message #157206 is a reply to message #157101] Fri, 16 June 2006 19:22 Go to previous messageGo to next message
Nicole Schumacher is currently offline Nicole SchumacherFriend
Messages: 40
Registered: July 2009
Member
Hi,

implement the IPerspectiveListener and put your code in the
perspectiveChanged event.
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/api/org/eclipse/ui/IPerspectiveLi stener.html

Here is an example:
http://www.kickjava.com/src/org/eclipse/ui/internal/CyclePer spectiveAction.java.htm

nicole


Charlie Kelly wrote:
> I want to make programatic changes after a user changes perspective (via
> PerspectiveBar) in an RCP application.
>
> Is there a good way to listen for these changes?
>
> Is the PerspectiveBar already register as a source of events (my code
> does not currently register it)?
>
> Thanks
>
> Charlie
>
>
>
Re: Listening for Perspective Changes [message #157236 is a reply to message #157206] Sat, 17 June 2006 01:57 Go to previous message
Charlie Kelly is currently offline Charlie KellyFriend
Messages: 276
Registered: July 2009
Senior Member
Hi Nicole,

Thanks for the advice and the URLs.
I hadn't seen KickJava before.

Charlie
Previous Topic:Help with keeping track of changes to resources
Next Topic:Import or set Build Path to use JAR's (Tomcat-project)
Goto Forum:
  


Current Time: Sat Apr 27 04:30:09 GMT 2024

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

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

Back to the top