Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo 3] Add Acceleo nature to Project
[Acceleo 3] Add Acceleo nature to Project [message #725587] Thu, 15 September 2011 09:44 Go to next message
the_ch40s is currently offline the_ch40sFriend
Messages: 14
Registered: April 2011
Junior Member
Hi there,
i have a project that i need to add the Acceleo nature to, so mtl files will automatically be compiled.

I tried using the "convert to acceleo project" wizard, but it just did nothing.
Could someone give me a little hint on how to achieve that ?

Im on Indigo btw.

Thanks for any help Smile

[Updated on: Thu, 15 September 2011 09:45]

Report message to a moderator

Re: [Acceleo 3] Add Acceleo nature to Project [message #725589 is a reply to message #725587] Thu, 15 September 2011 09:49 Go to previous messageGo to next message
simon.vivien is currently offline simon.vivienFriend
Messages: 21
Registered: August 2011
Junior Member
Natures associated with projects are specified in the .project file. You can try to add it manually :

<natures>
	<nature>org.eclipse.acceleo.ide.ui.acceleoNature</nature>
	[...]
</natures>
Re: [Acceleo 3] Add Acceleo nature to Project [message #725600 is a reply to message #725589] Thu, 15 September 2011 10:21 Go to previous messageGo to next message
the_ch40s is currently offline the_ch40sFriend
Messages: 14
Registered: April 2011
Junior Member
Thanks for the fast reply.
There is no .project file. It is a plugin-project and there is only build.properties, plugin.properties and plugin.xml.

[Updated on: Thu, 15 September 2011 10:22]

Report message to a moderator

Re: [Acceleo 3] Add Acceleo nature to Project [message #725602 is a reply to message #725600] Thu, 15 September 2011 10:28 Go to previous messageGo to next message
simon.vivien is currently offline simon.vivienFriend
Messages: 21
Registered: August 2011
Junior Member
You need to browse these files via the Navigator view, the default Package Explorer hides these files.
Re: [Acceleo 3] Add Acceleo nature to Project [message #725610 is a reply to message #725602] Thu, 15 September 2011 10:56 Go to previous messageGo to next message
the_ch40s is currently offline the_ch40sFriend
Messages: 14
Registered: April 2011
Junior Member
Oh my, thanks, really Smile

I added the nature and restarted eclipse. The "You need to add the Acceleo Nature to your Project" warning is gone now, but the emtl is still not generated ( i changed a few lines in the .mtl, started the plugin and called the method that calls the generation-> i got an io-exception "generate.emtl" not found).
Still, when i let the generate.mtl be compiled in my "normal acceleo-project" and copy it to the corresponding /bin location of my new project, everything works.

What is going wrong ^^?

[Updated on: Thu, 15 September 2011 11:01]

Report message to a moderator

Re: [Acceleo 3] Add Acceleo nature to Project [message #725641 is a reply to message #725610] Thu, 15 September 2011 12:01 Go to previous messageGo to next message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 280
Registered: July 2009
Senior Member
hi,

you need also to add the acceleo builder to your pligin :
<buildCommand>
<name>org.eclipse.acceleo.ide.ui.acceleoBuilder</name>
<arguments>
</arguments>
</buildCommand>

BTW, you should also create a bugzilla because modifying manually the
..project file is bad.


Le 15/09/2011 12:56, the_ch40s a écrit :
> Oh my, thanks, really :)
>
> I added the nature and restarted eclipse. The "You need to add the
> Acceleo Nature to your Project" warning is gone now, but the emtl is
> still not generated ( i changed a few lines in the emtl, started the
> plugin and called the method that calls the generation-> i got an
> io-exception "generate.emtl" not found).
> Still, when i let the generate.mtl be compiled in my "normal
> acceleo-project" and copy it to the corresponding /bin location of my
> new project, everything works.
>
> What is going wrong ^^?
>
>


--
Cheers,

Stéphane Bouchet, OBEO
Re: [Acceleo 3] Add Acceleo nature to Project [message #725749 is a reply to message #725641] Thu, 15 September 2011 16:36 Go to previous messageGo to next message
the_ch40s is currently offline the_ch40sFriend
Messages: 14
Registered: April 2011
Junior Member
You say manual editing is bad, but what would be the correct way to add the acceleo nature to the project, since the "convert to acceleo project" wizard does not seem to do anything?

Anyways, thanks for your help, it works now Smile
Re: [Acceleo 3] Add Acceleo nature to Project [message #725932 is a reply to message #725749] Fri, 16 September 2011 08:17 Go to previous message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 280
Registered: July 2009
Senior Member
in Acceleo 3.1, it is "Configure > toggle acceleo nature", the "convert
to acceleo project" is used to convert acceleo2 project in acceleo3.

if it is not working, please open a bug on bugzilla :)

Le 15/09/2011 18:36, the_ch40s a écrit :
> You say manual editing is bad, but what would be the correct way to add
> the acceleo nature to the project, since the "convert to acceleo
> project" wizard does not seem to do anything?
>
> Anyways, thanks for your help, it works now :)
>


--
Cheers,

Stéphane Bouchet, OBEO
Previous Topic:[Xpand] dynamic EXPAND statement
Next Topic:Registration problem of GCM package of MARTE Profile
Goto Forum:
  


Current Time: Sat Apr 20 03:08:45 GMT 2024

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

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

Back to the top