Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » modul to filter classes
modul to filter classes [message #729580] Mon, 26 September 2011 14:54 Go to next message
majestic  is currently offline majestic Friend
Messages: 11
Registered: September 2011
Junior Member
Hi,

sorry I have not much experience with acceleo and how to write modul files. My problem is: I have a UML file in which are some classes. For example Class A,B,C and D.
At the moment I have a modul file which creates from this classes java files. But now I want to filter. I do not want to create every class. For example I only want to create A.java and nothing else.
How could I do this? Thanks a lot.

Greets
Re: modul to filter classes [message #729615 is a reply to message #729580] Mon, 26 September 2011 16:09 Go to previous messageGo to next message
majestic  is currently offline majestic Friend
Messages: 11
Registered: September 2011
Junior Member
Or do someone have good tutorials to write modul files?
Re: modul to filter classes [message #729937 is a reply to message #729580] Tue, 27 September 2011 10:24 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Which M2T engine? Acceleo, JET, or Xpand?

Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: modul to filter classes [message #729942 is a reply to message #729937] Tue, 27 September 2011 10:32 Go to previous messageGo to next message
majestic  is currently offline majestic Friend
Messages: 11
Registered: September 2011
Junior Member
I am using Acceleo 3.0.2
Re: modul to filter classes [message #730031 is a reply to message #729942] Tue, 27 September 2011 14:17 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

In order to start with Acceleo, you can find a quick start guide and a getting started guide online. A tutorial and video presentations are also available on the Acceleo wiki and/or the Obeo Network. You can find on the Obeo Network the Acceleo user guide and the best practices guide. You can also have a look at the internal documentation (Help -> Help Contents -> Acceleo) available in Eclipse. Finally, you can find open source generators online like this UML to Java generator available on github.com. By the way, if you are starting with Acceleo, I would recommend you to use Acceleo 3.1.1 that has just been released instead of Acceleo 3.0.2 which is six month old. You can use the Acceleo 3.1.x update site (http://download.eclipse.org/modeling/m2t/acceleo/updates/releases/3.1) or the Eclipse marketplace to download the latest release of Acceleo.

Regards,

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau
Google+: stephane.begaudeau
Blog: http://stephanebegaudeau.tumblr.com
Acceleo Documentation: http://docs.obeonetwork.com/acceleo
Re: modul to filter classes [message #730204 is a reply to message #730031] Tue, 27 September 2011 21:35 Go to previous messageGo to next message
majestic  is currently offline majestic Friend
Messages: 11
Registered: September 2011
Junior Member
Thanks a lot. For the UML to Java generator from github do I need the Indigo Eclipse release? Because with Helios I do have problems by the execution with maven.

[Updated on: Tue, 27 September 2011 21:38]

Report message to a moderator

Re: modul to filter classes [message #730322 is a reply to message #730204] Wed, 28 September 2011 07:25 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

For the UML to Java generator, you can use Helios it does not matter but you need Acceleo 3.1 (which was released with Indigo but it can be installed on Helios too). I have created this generator on Helios, so it will work. For the maven build, it does not use the Eclipse that you have installed, so Helios or Indigo, it does not matter. You can have a look at my blog to see how to build the generator with maven.

Regards,

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau
Google+: stephane.begaudeau
Blog: http://stephanebegaudeau.tumblr.com
Acceleo Documentation: http://docs.obeonetwork.com/acceleo
Re: modul to filter classes [message #730391 is a reply to message #730322] Wed, 28 September 2011 09:54 Go to previous messageGo to next message
majestic  is currently offline majestic Friend
Messages: 11
Registered: September 2011
Junior Member
Hi,

i don't know exactly what he is doing, but i think he can't receive the package .....0712.jar.pack.gz

Any suggestions? Thanks!
  • Attachment: Unbenannt.jpg
    (Size: 358.15KB, Downloaded 265 times)
Re: modul to filter classes [message #731814 is a reply to message #730391] Mon, 03 October 2011 08:00 Go to previous message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

The Tycho build system may be slow the first time it is used in order to download all the dependencies. Are you sure that it is not downloading this file very slowly?


Regards,

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau
Google+: stephane.begaudeau
Blog: http://stephanebegaudeau.tumblr.com
Acceleo Documentation: http://docs.obeonetwork.com/acceleo
Previous Topic:invoking workflow with XPandfacade causes problems with primitive types
Next Topic:[acceleo] Good practice, implicit variable and constant queries
Goto Forum:
  


Current Time: Wed Apr 24 23:57:05 GMT 2024

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

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

Back to the top