Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Incremental builders and source dependencies
Incremental builders and source dependencies [message #45961] Mon, 09 February 2009 17:17 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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: Sat Jun 07 09:50:59 EDT 2025

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

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

Back to the top