Community
Participate
Working Groups
Build Identifier: Scenario: I have an xtend class which contains helper functions. All of those functions have no parameters. They are for example used for copying a license and copyright text into each file. Some of those functions might become parameters in the future. In order to use those functions I need to create a @Inject field in every XtendClass calling one of those functions. It would be much nicer if I could statically import those extensions Reproducible: Always
+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