|
|
Re: Acceleo and Xtext metamodel [message #1612235 is a reply to message #1611910] |
Wed, 11 February 2015 22:49   |
Eclipse User |
|
|
|
Hi
You probable need
XgrlStandaloneSetup.doSetup()
where Acceleo syas to regster your models.
Regards
Ed Willink
On 11/02/2015 17:48, duke vah wrote:
> BTW, the model is not an XMI format. It's a text as we expect from xtext.
> For example,Quote:
>> grl {
>> actor A{
>> }
>> actor B{
>> }
>> }
>
|
|
|
|
Re: Acceleo and Xtext metamodel [message #1612323 is a reply to message #1612279] |
Thu, 12 February 2015 00:07   |
duke vah Messages: 33 Registered: December 2013 |
Member |
|
|
Hi,
I solved the issue. Thank you.
I write here the solution for the future reference.
What is needed is that just call doSetup() in two places
Quote:
public Generate(URI modelURI, File targetFolder,
List<? extends Object> arguments) throws IOException {
TGRLStandaloneSetup.doSetup();
initialize(modelURI, targetFolder, arguments);
}
Quote:
public Generate(EObject model, File targetFolder,
List<? extends Object> arguments) throws IOException {
TGRLStandaloneSetup.doSetup();
initialize(model, targetFolder, arguments);
}
Thanks.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04073 seconds