Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Add ResourceChangeListener when Eclipse starts
Add ResourceChangeListener when Eclipse starts [message #323861] Thu, 10 January 2008 12:03 Go to next message
Eclipse UserFriend
Originally posted by: jeff_r2.verifone.com

I would like to add a ResourceChangeListener to the Workspace but cannot
figure out how to get code to execute when the Workspace opens.

Is there a 'OnWorkspaceOpen' action or something simular so I can run a
method to add the listener?

thanks.
Jeff
Re: Add ResourceChangeListener when Eclipse starts [message #323871 is a reply to message #323861] Thu, 10 January 2008 12:59 Go to previous messageGo to next message
Eclipse UserFriend
You can add IWorkbenchListener using the org.eclipse.ui.startup
extension point.

Snjeza

Jeff Reich wrote:
> I would like to add a ResourceChangeListener to the Workspace but cannot
> figure out how to get code to execute when the Workspace opens.
>
> Is there a 'OnWorkspaceOpen' action or something simular so I can run a
> method to add the listener?
>
> thanks.
> Jeff
>
>
Re: Add ResourceChangeListener when Eclipse starts [message #323872 is a reply to message #323871] Thu, 10 January 2008 13:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

But be careful. It is a strongly suggested normal recommendation that
you do not add things to startup because it slows startup down.

Instead read:

http://www.eclipse.org/articles/Article-Resource-deltas/reso urce-deltas.html

It talks about Save Participants. This is how you handle resource
changes that occurred since the last time you application was running.
That way you don't slow down the startup. Instead the next time you need
to know if any changes occurred you would use the save participant and
it will tell you.


--
Thanks,
Rich Kulp
Re: Add ResourceChangeListener when Eclipse starts [message #323876 is a reply to message #323871] Thu, 10 January 2008 15:15 Go to previous message
Eclipse UserFriend
Originally posted by: jeff_r2.verifone.com

Thanks. It worked.
Previous Topic:DebugUITools.displaySource is being called before switching to Debug perspective
Next Topic:Contents of plugin.properties not being parsed at runtime.
Goto Forum:
  


Current Time: Sat Jul 19 05:39:33 EDT 2025

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

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

Back to the top