Incremental builders and source dependencies [message #45961] |
Mon, 09 February 2009 17:17  |
Eclipse User |
|
|
|
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 02:57  |
Eclipse User |
|
|
|
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 02:57  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03319 seconds