Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to dynamically update the classpath
How to dynamically update the classpath [message #329285] Wed, 18 June 2008 12:09 Go to next message
Eclipse UserFriend
Originally posted by: cguibert.axway.com

Hello

Does anyone knows how to dynamically update the classpath of a project ?
We have a plug-in, and when we select an action of this plugin, we want
the classpath project to be updated.
We tried by modifying the classpath file, but it seems that the
modification is not taken into account.
Any help on either the classpath modification or our refresh problem would
be appreciated

Regards

CG
Re: How to dynamically update the classpath [message #329306 is a reply to message #329285] Wed, 18 June 2008 15:51 Go to previous message
Walter Harley is currently offline Walter HarleyFriend
Messages: 847
Registered: July 2009
Senior Member
"CG" <cguibert@axway.com> wrote in message
news:c691b15661a2c5b55aa4244bf5b2aed4$1@www.eclipse.org...
> Hello
>
> Does anyone knows how to dynamically update the classpath of a project ?
> We have a plug-in, and when we select an action of this plugin, we want
> the classpath project to be updated.
> We tried by modifying the classpath file, but it seems that the
> modification is not taken into account.
> Any help on either the classpath modification or our refresh problem would
> be appreciated


You'd use the IJavaProject.SetRawClasspath() method.

Be careful: you have to get the classpath, add your entry, and then set it,
so if two threads try to do that at the same time, one will be silently
ignored :-(
Previous Topic:Import plugin into Eclipse workspace
Next Topic:Dynamic entries not supported in main toolbars?
Goto Forum:
  


Current Time: Thu Jul 04 21:25:57 GMT 2024

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

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

Back to the top