Skip to main content



      Home
Home » Newcomers » Newcomers » Listening for Perspective Changes
Listening for Perspective Changes [message #157101] Fri, 16 June 2006 09:55 Go to next message
Eclipse UserFriend
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 15:22 Go to previous messageGo to next message
Eclipse UserFriend
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] Fri, 16 June 2006 21:57 Go to previous message
Eclipse UserFriend
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 Jul 05 04:46:14 EDT 2025

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

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

Back to the top