Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Incremental builders and source dependencies
Incremental builders and source dependencies [message #45961] Mon, 09 February 2009 22:17 Go to next message
Drake is currently offline DrakeFriend
Messages: 2
Registered: July 2009
Junior Member
Hello,

I have an incremental builder, which creates java source files. The
problem is that when dependencies (super class and implemented classes) of
the class change, the changes don't get reflected back to the generated
source files, it doesn't rebuild the class because there is no
notification of the changes to the classes it depends on.

Is there a way to be notified of when dependent classes change? It would
seems as if there should already be a way to do this from a plug-in but am
not seeing it. The closest thing I have been able to find is
IWorkspace.addResourceChangeListener, but I am not sure that is the right
way to do it.
Re: Incremental builders and source dependencies [message #46019 is a reply to message #45961] Tue, 10 February 2009 07:57 Go to previous message
Damian Philipp is currently offline Damian PhilippFriend
Messages: 30
Registered: July 2009
Member
Hello,

Drake schrieb:
> I have an incremental builder, which creates java source files. The
> problem is that when dependencies (super class and implemented classes)
> of the class change, the changes don't get reflected back to the
> generated source files, it doesn't rebuild the class because there is no
> notification of the changes to the classes it depends on.

your builder should be provided with an IResourceDelta, containing all
changes since the last run. See
http://www.eclipse.org/articles/Article-Builders/builders.ht ml for detauls.

Regards
Damian Philipp
Re: Incremental builders and source dependencies [message #591686 is a reply to message #45961] Tue, 10 February 2009 07:57 Go to previous message
Damian Philipp is currently offline Damian PhilippFriend
Messages: 30
Registered: July 2009
Member
Hello,

Drake schrieb:
> I have an incremental builder, which creates java source files. The
> problem is that when dependencies (super class and implemented classes)
> of the class change, the changes don't get reflected back to the
> generated source files, it doesn't rebuild the class because there is no
> notification of the changes to the classes it depends on.

your builder should be provided with an IResourceDelta, containing all
changes since the last run. See
http://www.eclipse.org/articles/Article-Builders/builders.ht ml for detauls.

Regards
Damian Philipp
Previous Topic:why my svn in eclipse 3.4.1 doesn't display the file version number and modified state?
Next Topic:How to specify BundleActivator class for OSGi launcher
Goto Forum:
  


Current Time: Fri Mar 29 07:51:58 GMT 2024

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

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

Back to the top