| Summary: | MWE2 is not advice-capable | ||
|---|---|---|---|
| Product: | [Modeling] EMFT | Reporter: | steven reinisch <steven.reinisch> |
| Component: | MWE | Assignee: | Project Inbox <emft-mwe-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | sven.efftinge |
| Version: | 1.0.1 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
steven reinisch
What concrete use case do you want to solve with this feature? I have an existing generator that is used as a cartridge from within another generator. the original generator shall be adapted without modifying it. Could you explain in more detail, what existing generator mens (how is it structured) and what exactly you want to modify. the original generator generates class definitions from a model describing structural system aspects. using a second dsl, the system's behaviour is modeled. the corresponding generator generates code that implements the modeled behaviour. the behaviour-generator needs to hook into the structure-generator: it adds code to a class' constructor: «AROUND templates::BaseClasses::Constructor FOR Interface» «targetDef.proceed()» //behavioural code goes here «ENDAROUND» furthermore, additional methods need to be generated into the classes: «AROUND templates::BaseClasses::Methods FOR Interface» «targetDef.proceed()» //more methods «ENDAROUND» That'S Xpand's AOP facility, which is still present. indeed, but is it possible to specify a generator-advice with mwe2 as it is possible with mwe? I already asked this question in the forum: http://www.eclipse.org/forums/index.php?t=msg&goto=549856& I posted a solution to the mentioned newsgroup thread. |