| Summary: | [Xtend2] Allow instance extensions without parameters | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Bernd Kolb <b.kolb> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | christian.dietrich.opensource, sebastian.zarnekow |
| Version: | unspecified | Flags: | sebastian.zarnekow:
indigo+
|
| Target Milestone: | SR2 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Bernd Kolb
+1 I could be interesting to allow things like this:
class CopyrightProvider {
def String getCopyright() {..}
}
class CodeGenerator {
@Inject extension CopyrightProvider copyrightProvider;
def generateSomething() '''
<<copyright>>
other things
'''
}
Please note that is already possible to do this
class CodeGenerator {
@Inject CopyrightProvider snippets;
def generateSomething() '''
<<snippets.copyright>>
other things
'''
}
Pushed to master. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |