Bug 230565 - No way to augment already-generated source files
Summary: No way to augment already-generated source files
Status: ASSIGNED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: IMP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Robert M. Fuhrer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-06 18:29 EDT by Robert M. Fuhrer CLA
Modified: 2014-01-09 15:04 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert M. Fuhrer CLA 2008-05-06 18:29:03 EDT
The current template-based code generation infrastructure does not permit
inserting content into an existing file, other than the limited case of adding
extensions to a plugin.xml.

This would be useful for, e.g.:

 - adding resources into a resource bundle containing labels, tooltips, and
descriptions for actions
 - inserting entries into a static array used by some table-driven code

This would also presumably require some infrastructure to detect whether a given
resource exists, and if not, generating it from the appropriate template.
Comment 1 Stan Sutton CLA 2008-05-06 18:29:07 EDT
I'm going to change the priority of this bug to "enhancement" since that seems
appropriate and to suggest that we probably don't want to plan to address this
before the open-source release.
Comment 2 Stan Sutton CLA 2008-05-06 18:29:11 EDT
Doing this right will require a significantly different and more complicated code generation mechanism.  Postponed until probably even past the Eclipse.org release.
Comment 3 Robert M. Fuhrer CLA 2008-05-06 18:29:15 EDT
I'm changing the state of this bug from NEW to ASSIGNED since I'm pretty sure we actually want to do it.
Comment 4 Robert M. Fuhrer CLA 2008-05-08 16:17:27 EDT
<gratuitous comment for change of status>