Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Reserved words and metaclass'property name
Reserved words and metaclass'property name [message #9374] Wed, 28 January 2009 14:37 Go to next message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Hi list,

I'm new to epsilon and would like to thanks for the great work done !

I have a problem using egl : a metaclass named Interface owns a property
named "operation" and when writing an egl program the word appears as a
reserved word so I can't make use of it. Is there a way to avoid this ?
In some other languages they use the ~ to avoid this so I can write
mymetaclass.~oepration.

Is there something like this or another way to get out of this ?

Also, how does one can make a distributable product embedding its epsilon
programs ?
I don't really see how I can use the extensions to distribute easily the
eol programs, any doc coming ? =)

I'd like to point Acceleo here and its Module feature which make it easy
to create standalone applications or plugins, www.acceleo.org, it's open
source and eclipse based, if it can use.

Thanks !
Re: Reserved words and metaclass'property name [message #9396 is a reply to message #9374] Wed, 28 January 2009 14:49 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Stephane,

Stephane wrote:
> Hi list,
>
> I'm new to epsilon and would like to thanks for the great work done !

Thanks a lot for your feedback!
>
> I have a problem using egl : a metaclass named Interface owns a property
> named "operation" and when writing an egl program the word appears as a
> reserved word so I can't make use of it. Is there a way to avoid this ?
> In some other languages they use the ~ to avoid this so I can write
> mymetaclass.~oepration.
>
> Is there something like this or another way to get out of this ?
>

Yes. You can enclose the reserved word in "" (e.g. mymetaclass."operation")

> Also, how does one can make a distributable product embedding its
> epsilon programs ?
> I don't really see how I can use the extensions to distribute easily the
> eol programs, any doc coming ? =)

Do you mean an Eclipse or a non-Eclipse based product?
>
> I'd like to point Acceleo here and its Module feature which make it easy
> to create standalone applications or plugins, www.acceleo.org, it's open
> source and eclipse based, if it can use.

That sounds interesting in principle. Do you have a link to the
documentation of this feature so that I can have a look into it?

>
> Thanks !
>

Cheers,
Dimitris
Re: Reserved words and metaclass'property name [message #9420 is a reply to message #9396] Wed, 28 January 2009 15:06 Go to previous messageGo to next message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Hi,

Thanks !!

About acceleo, the doc is in french, but I can describe quickly how it
works.

You first create a generator project (acceleo perspective), then a
template and a chain. You then add parameters to the chain (=ant task but
can only call templates or other chains). Finally you export your project
as an acceleo module, plugin or standalone application (which is an
eclipse product with the generator inside plus whatever you want, you feed
him with parameters in an ini file and run it to get generated files)

It works pretty well ! There are samples too, and if you need some help to
test I can.

http://acceleo.org/pages/export-d-un-generateur-en-tant-que- plugin/en

Here is all free doc http://acceleo.org/pages/introduction/en


Thanks !
Re: Reserved words and metaclass'property name [message #9442 is a reply to message #9396] Wed, 28 January 2009 15:12 Go to previous messageGo to next message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
If you want I've made a ecore2acceleo module plugin which make use of this
feature.
It's a plugin which helps you creating chains to launch the generation.

https://sourceforge.net/project/platformdownload.php?group_i d=250817

You'll need acceleo for this test.

Put it in your plugins directory, relauch, create an emf project and
model, then new->acceleo->Module launcher, Here you'll get all modules
availlable.
There should be three, all available thanks to the ecore2acceleo plugin.

Briefly I explain: step 1 create a gengenerator.properties file, step2
create a generator.properties and the last one create acceleo templates
for all eclasses of the metamodel.

This module has been made very easily using the export feature of acceleo.

When clicking Next in the new->acceleo->module launcher->ecore2acceleo
step1, the parameters of the chain are fields of the window and need to be
set by the user.

Hope this help in your try.
Re: Reserved words and metaclass'property name [message #9465 is a reply to message #9420] Wed, 28 January 2009 15:14 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Stephane,

Thanks for the pointers; this looks really interesting but unfortunately
there is currently nothing like this in Epsilon.

Having said this, you can still use Epsilon programmatically from your
standalone Java application (see
http://dev.eclipse.org/viewsvn/index.cgi/trunk/examples/org. eclipse.epsilon.examples.standalone/?root=Modeling_EPSILON
for examples of using different Epsilon languages without any Eclipse
dependencies), and as part of other Eclipse plugins (see
http://dev.eclipse.org/viewsvn/index.cgi/trunk/plugins/org.e clipse.epsilon.productivity/?root=Modeling_EPSILON
where EGL transformations are executed on ECore models via a
contribution to the Eclipse context menu).

Please let me know if you face any problems integrating Epsilon to your
application and I'll be happy to help!

Cheers,
Dimitris

Stephane wrote:
> Hi,
>
> Thanks !!
>
> About acceleo, the doc is in french, but I can describe quickly how it
> works.
>
> You first create a generator project (acceleo perspective), then a
> template and a chain. You then add parameters to the chain (=ant task
> but can only call templates or other chains). Finally you export your
> project as an acceleo module, plugin or standalone application (which is
> an eclipse product with the generator inside plus whatever you want, you
> feed him with parameters in an ini file and run it to get generated files)
>
> It works pretty well ! There are samples too, and if you need some help
> to test I can.
>
> http://acceleo.org/pages/export-d-un-generateur-en-tant-que- plugin/en
>
> Here is all free doc http://acceleo.org/pages/introduction/en
>
>
> Thanks !
>
Re: Reserved words and metaclass'property name [message #9489 is a reply to message #9442] Wed, 28 January 2009 15:18 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Thanks Stephane! I'll set-up Acceleo and give it a try shortly. Do you
have a specific use-case for such functionality in Epsilon or is it
mainly a nice-to-have feature?

Cheers,
Dimitris

Stéphane wrote:
> If you want I've made a ecore2acceleo module plugin which make use of
> this feature.
> It's a plugin which helps you creating chains to launch the generation.
>
> https://sourceforge.net/project/platformdownload.php?group_i d=250817
>
> You'll need acceleo for this test.
>
> Put it in your plugins directory, relauch, create an emf project and
> model, then new->acceleo->Module launcher, Here you'll get all modules
> availlable.
> There should be three, all available thanks to the ecore2acceleo plugin.
>
> Briefly I explain: step 1 create a gengenerator.properties file, step2
> create a generator.properties and the last one create acceleo templates
> for all eclasses of the metamodel.
>
> This module has been made very easily using the export feature of acceleo.
>
> When clicking Next in the new->acceleo->module launcher->ecore2acceleo
> step1, the parameters of the chain are fields of the window and need to
> be set by the user.
>
> Hope this help in your try.
>
>
Re: Reserved words and metaclass'property name [message #9512 is a reply to message #9465] Wed, 28 January 2009 15:40 Go to previous message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Thanks !

If you can just tell me how can I pass parameters to an eol program ?

So I can make the output path parametrable :)

Thanks !!
Re: Reserved words and metaclass'property name [message #564006 is a reply to message #9374] Wed, 28 January 2009 14:49 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Stephane,

Stephane wrote:
> Hi list,
>
> I'm new to epsilon and would like to thanks for the great work done !

Thanks a lot for your feedback!
>
> I have a problem using egl : a metaclass named Interface owns a property
> named "operation" and when writing an egl program the word appears as a
> reserved word so I can't make use of it. Is there a way to avoid this ?
> In some other languages they use the ~ to avoid this so I can write
> mymetaclass.~oepration.
>
> Is there something like this or another way to get out of this ?
>

Yes. You can enclose the reserved word in "" (e.g. mymetaclass."operation")

> Also, how does one can make a distributable product embedding its
> epsilon programs ?
> I don't really see how I can use the extensions to distribute easily the
> eol programs, any doc coming ? =)

Do you mean an Eclipse or a non-Eclipse based product?
>
> I'd like to point Acceleo here and its Module feature which make it easy
> to create standalone applications or plugins, www.acceleo.org, it's open
> source and eclipse based, if it can use.

That sounds interesting in principle. Do you have a link to the
documentation of this feature so that I can have a look into it?

>
> Thanks !
>

Cheers,
Dimitris
Re: Reserved words and metaclass'property name [message #564022 is a reply to message #9396] Wed, 28 January 2009 15:06 Go to previous message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Hi,

Thanks !!

About acceleo, the doc is in french, but I can describe quickly how it
works.

You first create a generator project (acceleo perspective), then a
template and a chain. You then add parameters to the chain (=ant task but
can only call templates or other chains). Finally you export your project
as an acceleo module, plugin or standalone application (which is an
eclipse product with the generator inside plus whatever you want, you feed
him with parameters in an ini file and run it to get generated files)

It works pretty well ! There are samples too, and if you need some help to
test I can.

http://acceleo.org/pages/export-d-un-generateur-en-tant-que- plugin/en

Here is all free doc http://acceleo.org/pages/introduction/en


Thanks !
Re: Reserved words and metaclass'property name [message #564039 is a reply to message #9396] Wed, 28 January 2009 15:12 Go to previous message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
If you want I've made a ecore2acceleo module plugin which make use of this
feature.
It's a plugin which helps you creating chains to launch the generation.

https://sourceforge.net/project/platformdownload.php?group_i d=250817

You'll need acceleo for this test.

Put it in your plugins directory, relauch, create an emf project and
model, then new->acceleo->Module launcher, Here you'll get all modules
availlable.
There should be three, all available thanks to the ecore2acceleo plugin.

Briefly I explain: step 1 create a gengenerator.properties file, step2
create a generator.properties and the last one create acceleo templates
for all eclasses of the metamodel.

This module has been made very easily using the export feature of acceleo.

When clicking Next in the new->acceleo->module launcher->ecore2acceleo
step1, the parameters of the chain are fields of the window and need to be
set by the user.

Hope this help in your try.
Re: Reserved words and metaclass'property name [message #564060 is a reply to message #9420] Wed, 28 January 2009 15:14 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Stephane,

Thanks for the pointers; this looks really interesting but unfortunately
there is currently nothing like this in Epsilon.

Having said this, you can still use Epsilon programmatically from your
standalone Java application (see
http://dev.eclipse.org/viewsvn/index.cgi/trunk/examples/org. eclipse.epsilon.examples.standalone/?root=Modeling_EPSILON
for examples of using different Epsilon languages without any Eclipse
dependencies), and as part of other Eclipse plugins (see
http://dev.eclipse.org/viewsvn/index.cgi/trunk/plugins/org.e clipse.epsilon.productivity/?root=Modeling_EPSILON
where EGL transformations are executed on ECore models via a
contribution to the Eclipse context menu).

Please let me know if you face any problems integrating Epsilon to your
application and I'll be happy to help!

Cheers,
Dimitris

Stephane wrote:
> Hi,
>
> Thanks !!
>
> About acceleo, the doc is in french, but I can describe quickly how it
> works.
>
> You first create a generator project (acceleo perspective), then a
> template and a chain. You then add parameters to the chain (=ant task
> but can only call templates or other chains). Finally you export your
> project as an acceleo module, plugin or standalone application (which is
> an eclipse product with the generator inside plus whatever you want, you
> feed him with parameters in an ini file and run it to get generated files)
>
> It works pretty well ! There are samples too, and if you need some help
> to test I can.
>
> http://acceleo.org/pages/export-d-un-generateur-en-tant-que- plugin/en
>
> Here is all free doc http://acceleo.org/pages/introduction/en
>
>
> Thanks !
>
Re: Reserved words and metaclass'property name [message #564088 is a reply to message #9442] Wed, 28 January 2009 15:18 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Thanks Stephane! I'll set-up Acceleo and give it a try shortly. Do you
have a specific use-case for such functionality in Epsilon or is it
mainly a nice-to-have feature?

Cheers,
Dimitris

Stéphane wrote:
> If you want I've made a ecore2acceleo module plugin which make use of
> this feature.
> It's a plugin which helps you creating chains to launch the generation.
>
> https://sourceforge.net/project/platformdownload.php?group_i d=250817
>
> You'll need acceleo for this test.
>
> Put it in your plugins directory, relauch, create an emf project and
> model, then new->acceleo->Module launcher, Here you'll get all modules
> availlable.
> There should be three, all available thanks to the ecore2acceleo plugin.
>
> Briefly I explain: step 1 create a gengenerator.properties file, step2
> create a generator.properties and the last one create acceleo templates
> for all eclasses of the metamodel.
>
> This module has been made very easily using the export feature of acceleo.
>
> When clicking Next in the new->acceleo->module launcher->ecore2acceleo
> step1, the parameters of the chain are fields of the window and need to
> be set by the user.
>
> Hope this help in your try.
>
>
Re: Reserved words and metaclass'property name [message #564105 is a reply to message #9465] Wed, 28 January 2009 15:40 Go to previous message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Thanks !

If you can just tell me how can I pass parameters to an eol program ?

So I can make the output path parametrable :)

Thanks !!
Previous Topic:Reserved words and metaclass'property name
Next Topic:Re: Passing parameters to Epsilon programs
Goto Forum:
  


Current Time: Fri Mar 29 01:56:20 GMT 2024

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

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

Back to the top