Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350074

Summary: Regenerate when the generator settings for the source file have changed
Product: z_Archived Reporter: Justin Spadea <jspadea>
Component: EDTAssignee: Justin Spadea <jspadea>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Justin Spadea CLA 2011-06-22 12:07:00 EDT
Could be an explicit change on the .egl file, or could it's inheriting its setting from a parent resource, and that inherited setting changed.
Comment 1 Justin Spadea CLA 2011-06-22 17:18:31 EDT
Looks like we should be able to have something listen to changes to generator settings, figure out all the resources affected by the changed setting, and do IResource.touch() on each of their corresponding IRs. This will cause an incremental generation build to run with the delta being all the IRs touched.

Will need to make sure we listen to project settings as well as the workspace preferences.
Comment 2 Justin Spadea CLA 2011-06-24 12:41:37 EDT
Modified/added the following in edt.ide.core:

CoreIDEPluginStrings.java
EDTCoreIDEPlugin.java
CoreIDEPluginResources.properties
+ ProjectSettingsListenerManager.java
ResourceChangeProcessor.java
GenerationBuilder.java
GenerationBuildManager.java
ProjectSettingsUtility.java
Comment 3 Justin Spadea CLA 2011-07-05 14:56:21 EDT
Verified in latest CVS