Exporting an Acceleo 3.0 generator as an Eclipse Plugin [message #1300400] |
Thu, 17 April 2014 14:47 |
tcl developer Messages: 4 Registered: April 2014 |
Junior Member |
|
|
Hi there,
I have created a code generator based on Acceleo 3.0. I am trying now to deploy it as an Eclipse plugin in order to be able to install it on different instances, but I didn't succed.
I created a Feature project, then I added the generator projet to it then I exported as a deployable feature.
the exported feature project was installed. It contains the generator projet and the ui project (which adds a popmenu when you click right on the model to be transformed into code). When I click right on the model I want to transform , and I choose Acceleo Generate Code, The directory "src-gen" is being created, but the actual file that contains the generated code is not created.
Another detail, In the UI project there is :
IContainer target = model.getProject().getFolder("src-gen");
GenerateAll generator = new GenerateAll(modelURI, target, getArguments());
generator.doGenerate(monitor);
The directory src-gen is being created, this is why I believe the problem comes from the instruction right after it, which instanciate the generator.
Any help is appreciated.
thanks and have a nice day
[Updated on: Thu, 17 April 2014 14:47] Report message to a moderator
|
|
|
Re: Exporting an Acceleo 3.0 generator as an Eclipse Plugin [message #1301603 is a reply to message #1300400] |
Fri, 18 April 2014 07:32 |
Ed Willink Messages: 7665 Registered: July 2009 |
Senior Member |
|
|
Hi
Firstly review this newsgroup since there have been a number of
discussions on this topic already.
If that doesn't help take a look at
https://wiki.eclipse.org/OCL/ForumNetiquette for some tips on asking a
question that might get answered.
Regards
Ed Willink
On 17/04/2014 15:47, tcl developer wrote:
> Hi there,
>
> I have created a code generator based on Acceleo 3.0. I am trying now
> to deploy it as an Eclipse plugin in order to be able to install it on
> different instances, but I didn't succed.
>
> I created a Feature project, then I added the generator projet to it
> then I exported as a deployable feature.
> the exported feature project was installed. It contains the generator
> projet and the ui project (which adds a popmenu when you click right
> on the model to be transformed into code). When I click right on the
> model I want to transform , and I choose Acceleo Generate Code, The
> directory "src-gen" is being created, but the actual file that
> contains the generated code is not created.
>
> Another detail, In the UI project there is : IContainer target =
> model.getProject().getFolder("src-gen"); GenerateAll generator = new
> GenerateAll(modelURI, target, getArguments());
> generator.doGenerate(monitor); The directory src-gen is being created,
> this is why I believe the problem comes from the instruction right
> after it, which instanciate the generator.
>
> Any help is appreciated.
> thanks and have a nice day :)
|
|
|
|
Powered by
FUDForum. Page generated in 0.04487 seconds