|[acceleo] loading EMF resource with a folder URI [message #1058070]
||Fri, 10 May 2013 15:09
| Vlad Gheorghe
Registered: May 2011
Suppose I have an EMF-based metamodel which defines a resource that constructs the model from the contents of a folder.
Even if that works programatically, when trying to load it in acceleo we get:
java.lang.IllegalArgumentException: Path must include project and resource name: /PPP
Would it make sense to allow loading from any resource, not only files ?
|Re: [acceleo] loading EMF resource with a folder URI [message #1058273 is a reply to message #1058070]
||Mon, 13 May 2013 08:37
| Stephane Begaudeau
Registered: April 2010
Location: Nantes (France)
Acceleo has been created with the idea that people would launch their generation on a model. We have made sure that Acceleo can also be used in complex use cases. While your use case makes sense, it is more complex than the regular code generation use case and the user interface of Acceleo does not support it. You can launch your generator in stand alone or you can use a dedicated launcher (new Acceleo UI Launcher) in which you can start your generation on a "folder". Personnaly I tend to use a dedicated launcher in order to provide my users with additional options for the generation. You use case makes sense but I don't think it makes enough sense for us to change the way the Acceleo user interface works. The next thing you know, people will come and complain about Acceleo not generating what they want because they have selected the folder containing their model and not the model itself...
Stephane Begaudeau, Obeo
Blog: http://stephanebegaudeau.tumblr.com | Eclipse Java Development Tools Tips and Tricks
Powered by FUDForum
. Page generated in 0.03653 seconds