Incremental generation with Acceleo 3 - acceleo

I wanted to do some incremental generation with Acceleo 3. Typically generate some code, write some specific functions, and when I regenerate I don't want to override the code I wrote.
I know it's possible in Acceleo 2.8 (http://www.acceleo.org/pages/incremental-generation/en) but I don't see any example of that in Acceleo 3 documentation.
Is it possible?

Acceleo 3 features the same mechanism as Acceleo 2 to protect some piece of user code. You can use a protected area defined in the generator to let your user change the code as they want in the protected area or if you are generating Java, you can also use JMerge to protected a documented element (#generated NOT in the documentation of a Java element to protected it). You can watch those two behaviors in video in the documentation of Acceleo 3.1
You can also have a look at the best practices guide and all the other features of Acceleo 3.1 in the user guide.
Stephane Begaudeau

Related

Are there any code generators (inbuilt or third party) available to generate database first code for ASP..NET boilerplate?

I am about to start development of a Cloud based product and am actively considering using ASPBoilerPlate. Apart from ASPZero, are there any tools or code generators that can generate Entity,Domain and DDOs for me... Are there any ASPBoilerplate specific code generators for other things like Simple Views for?
some RAD tools have been developed but I personally think you have to implement your custom generators using T4 templates.

UML to HUTN (Human-Usable Textual Notation)

The epsilon project (based on eclipse) promises here to transform XMI to HUTN. I can't find any documentation for this purpose. Is it too trivial? I don't get it
Thanks for any advice
The page you reference has all the information. However, for this to work you need to have an Eclipse IDE with Epsilon installed. (You can get an Epsilon-ready Eclipse from the Epsilon website here.)
Then, as instructed in the page you can craete a HUTN model using the HUTN editor. Once you have your model, follow the instructions at the bottom of the page to generate the respective XMI version. Note that it is possible that the extension of the generated model is .model, but nonetheless its contents are in the XMI format and can be used anywhere an XMI model is expected.

Implementing Lucas Rocha's smoothie

I am trying to implement the excellent library provided by Lucas Rocha. This library allows for very efficient scrolling on ListViews.
https://github.com/lucasr/smoothie
His text states 1.Add Smoothie's jar as a dependency to your project. but I am not able to find any jar file in the package.
I have emailed him but his response simply refers to the narrative within his modules. There is no user friendly guide on how to go about implementing this.
It is clearly directed at experienced programmers but it would be useful if all the "not so experienced" programmers are able to progress with this.
So my question:
Can anyone provide clear step by step guidance on how to implement the smoothie libray.
Thanks in advance
The JAR needs to be compiled from source as a compiled version is not available for direct download. You can see my sample application to see Smoothie in action. The sample application also contains a JAR file compiled from the latest Smoothie source code.
At a bare minimum, you need to write two classes, one extending android.support.v4.widget.CursorAdapter and another extending org.lucasr.smoothie.ItemLoader. The sample application mentioned above contains ContactAdapter and ContactLoader classes that extend these aforementioned ones.
The order in which these classes are coded does not really matter, but I found it easier to implement ContactAdapter and therefore coded it first.

Where do I test the tutorial 3 of Datameer Developer Guide

I am working for the Datameer plugin development and I am struck at Tutorial 3 of it. Does anybody know where do I see that Freemarker widget that I build in tutorial 3 working in Datameer UI???
I don't have the permission to create new tags and hence putting it under Hadoop. If anybody has the appropriate privileges, please create one for Datameer
Unfortunately the tutorial was for Datameer v1.4. We introduced an entirely new data visualization module in v2.0 and we are working on providing the same customizability for it in a near future release.
Sorry for the delayed response on this post. It turns out that in version 2.0+ of Datameer the visualization (now called Infographics) module has been rewritten leveraging the power of HTML5 to more intuitively visualize your data analysis.
I recommend that you take a look at the new features that 2.0 has to offer under http://www.datameer.com/learn/videos.html.

Implementing IVsHierarchy

I would like to get started with implementing a new IVsHierarchy, however, i am not sure as to how this can be done, to be rephrasing i am not sure as to how the IVsHierarchy can be used.
Can someone share some example or shed some light on it ??
Take a look at the MPF for Projects. It contains implementation of IVsHierarchy. You can use it as base of your Project System.
http://mpfproj.codeplex.com/
I'd highly recommend reading DiveDeeper's blog on VSX.
He has a number of posts on implementing IVsHierarchy:
Working with Hierarchies, Part 1
Working with Hierarchies, Part 2
Working with Hierarchies, Part 3
Working with Hierarchies, Part 4
Working with Hierarchies, Part 5
He also has an open source library called VSXtra which provides lots of handy support code for writing VS Packages. You may find it useful to use as a reference.

Resources