Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [acceleo] loading EMF resource with a folder URI
[acceleo] loading EMF resource with a folder URI [message #1058070] Fri, 10 May 2013 19:09 Go to next message
Vlad Gheorghe is currently offline Vlad GheorgheFriend
Messages: 127
Registered: May 2011
Senior Member

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
at org.eclipse.core.runtime.Assert.isLegal(
at org.eclipse.core.internal.resources.Workspace.newResource(
at org.eclipse.core.internal.resources.Container.getFile(

Would it make sense to allow loading from any resource, not only files ?

Best regards,
Vlad Gheorghe
Re: [acceleo] loading EMF resource with a folder URI [message #1058273 is a reply to message #1058070] Mon, 13 May 2013 12:37 Go to previous message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member


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

Twitter: @sbegaudeau
Google+: +stephane.begaudeau
Blog: | Eclipse Java Development Tools Tips and Tricks
Previous Topic: [acceleo] How to create file "Android Model" with EMF Eclipse
Next Topic:[Acceleo]Acceleo does not see metamodels located in targetplatform
Goto Forum:

Current Time: Mon Jul 04 06:21:14 GMT 2022

Powered by FUDForum. Page generated in 0.01720 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top