Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Using JET with EMF model
Using JET with EMF model [message #129811] Mon, 22 September 2008 13:42 Go to next message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
Hi!

I need to run JET templates on a EMF model metadata - i.e. the model
itself (not data) is input to my JET template.

More practically - I want generate non java code, based on EMF model.

How I do it?

Thank you
Re: Using JET with EMF model [message #129824 is a reply to message #129811] Mon, 22 September 2008 15:09 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31020
Registered: July 2009
Senior Member
Pavel,

The org.eclipse.emf.examples.generator.validator example would be good
to look at. Note that there's a JET newsgroup if you're using JET and
an EMF newsgroup. Of those two would be a better place to ask. I've
included both in the "to" list of the reply.


Pavel Bernshtam wrote:
> Hi!
>
> I need to run JET templates on a EMF model metadata - i.e. the model
> itself (not data) is input to my JET template.
>
> More practically - I want generate non java code, based on EMF model.
>
> How I do it?
>
> Thank you
>
Re: Using JET with EMF model [message #129837 is a reply to message #129824] Mon, 22 September 2008 16:05 Go to previous messageGo to next message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
Thank you, where can I get this example source code?
Re: Using JET with EMF model [message #129850 is a reply to message #129837] Mon, 22 September 2008 16:41 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31020
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090806070706080701020109
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Pavel,

The examples are available with each download:
<http://www.eclipse.org/modeling/emf/downloads/?project=emf>

http://www.eclipse.org/modeling/emf/downloads/?project=emf

If you have the EMF SDK installed, you can install them in the workspace
via the wizards as well...



Pavel Bernshtam wrote:
> Thank you, where can I get this example source code?
>

--------------090806070706080701020109
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Pavel,<br>
<br>
The examples are available with each download:<a
href="http://www.eclipse.org/modeling/emf/downloads/?project=emf"><br>
</a>
<blockquote><a
href="http://www.eclipse.org/modeling/emf/downloads/?project=emf">http://www.eclipse.org/modeling/emf/downloads/?project=emf</a><br>
</blockquote>
If you have the EMF SDK installed, you can install them in the
workspace via the wizards as well...<br>
<br>
<br>
<br>
Pavel Bernshtam wrote:
<blockquote
cite="mid:d9d780f225998dbba5c45e8e3bd2ce8e$1@www.eclipse.org"
type="cite">Thank you, where can I get this example source code?
<br>
<br>
</blockquote>
</body>
</html>

--------------090806070706080701020109--
Re: Using JET with EMF model [message #129890 is a reply to message #129850] Thu, 25 September 2008 07:44 Go to previous messageGo to next message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
Thank you.
I'm very sorry for the my novice question - how I use these examples?
I see that they are packaged as a plugin - how I install and view them?

I tried to add only validator exaple as "Import project" but then he lost
all his dependencies
Re: Using JET with EMF model [message #129903 is a reply to message #129890] Thu, 25 September 2008 10:22 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31020
Registered: July 2009
Senior Member
Pavel,

That zip file has then in installable form, which isn't so useful if you
want to see them or import them into the workspace. I'm getting an
install of the modeling package to see where in the wizards the ability
to import the zipped examples packaged in the SDK hides, but that's kind
of slow at the moment because the SR1 just came out yesterday. I've
attached the example.psf file so you can use "File->Import->Team->Team
Project Set" and extract the example directly from CVS.


Pavel Bernshtam wrote:
> Thank you.
> I'm very sorry for the my novice question - how I use these examples?
> I see that they are packaged as a plugin - how I install and view them?
>
> I tried to add only validator exaple as "Import project" but then he
> lost all his dependencies
>
Re: Using JET with EMF model [message #129978 is a reply to message #129903] Tue, 07 October 2008 08:11 Go to previous messageGo to next message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
Sorry, I do not see the attachment.
Can you send me it to pavelber at cadence dot com ?
Re: Using JET with EMF model [message #130002 is a reply to message #129978] Tue, 07 October 2008 10:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31020
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090800070904080100030207
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Pavel,

I think I forgot to attach it because I don't see it either. :-P


Pavel Bernshtam wrote:
> Sorry, I do not see the attachment.
> Can you send me it to pavelber at cadence dot com ?
>

--------------090800070904080100030207
Content-Type: text/xml;
name="example.psf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="example.psf"

<?xml version="1.0" encoding="UTF-8"?>
<psf version="2.0">
<provider id="org.eclipse.team.cvs.core.cvsnature">
<project reference=" 1.0,:pserver:dev.eclipse.org:/cvsroot/modeling,org.eclipse.e mf/org.eclipse.emf/examples/org.eclipse.emf.examples.generat or.validator,org.eclipse.emf.examples.generator.validator "/>
</provider>
</psf>

--------------090800070904080100030207--
Re: Using JET with EMF model [message #130129 is a reply to message #129903] Sun, 12 October 2008 12:05 Go to previous messageGo to next message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
Which user/password should I use while accessing files directly from CVS?
Re: Using JET with EMF model [message #130142 is a reply to message #130129] Sun, 12 October 2008 12:47 Go to previous message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 213
Registered: July 2009
Senior Member
There is a reference for the same at
http://wiki.eclipse.org/index.php/CVS_Howto
Re: Using JET with EMF model [message #620320 is a reply to message #129811] Mon, 22 September 2008 15:09 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31020
Registered: July 2009
Senior Member
Pavel,

The org.eclipse.emf.examples.generator.validator example would be good
to look at. Note that there's a JET newsgroup if you're using JET and
an EMF newsgroup. Of those two would be a better place to ask. I've
included both in the "to" list of the reply.


Pavel Bernshtam wrote:
> Hi!
>
> I need to run JET templates on a EMF model metadata - i.e. the model
> itself (not data) is input to my JET template.
>
> More practically - I want generate non java code, based on EMF model.
>
> How I do it?
>
> Thank you
>
Re: Using JET with EMF model [message #620321 is a reply to message #129824] Mon, 22 September 2008 16:05 Go to previous message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
Thank you, where can I get this example source code?
Re: Using JET with EMF model [message #620322 is a reply to message #129837] Mon, 22 September 2008 16:41 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31020
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090806070706080701020109
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Pavel,

The examples are available with each download:
<http://www.eclipse.org/modeling/emf/downloads/?project=emf>

http://www.eclipse.org/modeling/emf/downloads/?project=emf

If you have the EMF SDK installed, you can install them in the workspace
via the wizards as well...



Pavel Bernshtam wrote:
> Thank you, where can I get this example source code?
>

--------------090806070706080701020109
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Pavel,<br>
<br>
The examples are available with each download:<a
href="http://www.eclipse.org/modeling/emf/downloads/?project=emf"><br>
</a>
<blockquote><a
href="http://www.eclipse.org/modeling/emf/downloads/?project=emf">http://www.eclipse.org/modeling/emf/downloads/?project=emf</a><br>
</blockquote>
If you have the EMF SDK installed, you can install them in the
workspace via the wizards as well...<br>
<br>
<br>
<br>
Pavel Bernshtam wrote:
<blockquote
cite="mid:d9d780f225998dbba5c45e8e3bd2ce8e$1@www.eclipse.org"
type="cite">Thank you, where can I get this example source code?
<br>
<br>
</blockquote>
</body>
</html>

--------------090806070706080701020109--
Re: Using JET with EMF model [message #620325 is a reply to message #129850] Thu, 25 September 2008 07:44 Go to previous message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
Thank you.
I'm very sorry for the my novice question - how I use these examples?
I see that they are packaged as a plugin - how I install and view them?

I tried to add only validator exaple as "Import project" but then he lost
all his dependencies
Re: Using JET with EMF model [message #620326 is a reply to message #129890] Thu, 25 September 2008 10:22 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31020
Registered: July 2009
Senior Member
Pavel,

That zip file has then in installable form, which isn't so useful if you
want to see them or import them into the workspace. I'm getting an
install of the modeling package to see where in the wizards the ability
to import the zipped examples packaged in the SDK hides, but that's kind
of slow at the moment because the SR1 just came out yesterday. I've
attached the example.psf file so you can use "File->Import->Team->Team
Project Set" and extract the example directly from CVS.


Pavel Bernshtam wrote:
> Thank you.
> I'm very sorry for the my novice question - how I use these examples?
> I see that they are packaged as a plugin - how I install and view them?
>
> I tried to add only validator exaple as "Import project" but then he
> lost all his dependencies
>
Re: Using JET with EMF model [message #620332 is a reply to message #129903] Tue, 07 October 2008 08:11 Go to previous message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
Sorry, I do not see the attachment.
Can you send me it to pavelber at cadence dot com ?
Re: Using JET with EMF model [message #620334 is a reply to message #129978] Tue, 07 October 2008 10:55 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31020
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090800070904080100030207
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Pavel,

I think I forgot to attach it because I don't see it either. :-P


Pavel Bernshtam wrote:
> Sorry, I do not see the attachment.
> Can you send me it to pavelber at cadence dot com ?
>

--------------090800070904080100030207
Content-Type: text/xml;
name="example.psf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="example.psf"

<?xml version="1.0" encoding="UTF-8"?>
<psf version="2.0">
<provider id="org.eclipse.team.cvs.core.cvsnature">
<project reference=" 1.0,:pserver:dev.eclipse.org:/cvsroot/modeling,org.eclipse.e mf/org.eclipse.emf/examples/org.eclipse.emf.examples.generat or.validator,org.eclipse.emf.examples.generator.validator "/>
</provider>
</psf>

--------------090800070904080100030207--
Re: Using JET with EMF model [message #620344 is a reply to message #129903] Sun, 12 October 2008 12:05 Go to previous message
Pavel Bernshtam is currently offline Pavel BernshtamFriend
Messages: 36
Registered: July 2009
Member
Which user/password should I use while accessing files directly from CVS?
Re: Using JET with EMF model [message #620345 is a reply to message #130129] Sun, 12 October 2008 12:47 Go to previous message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 213
Registered: July 2009
Senior Member
There is a reference for the same at
http://wiki.eclipse.org/index.php/CVS_Howto
Previous Topic:Code generation from ant or maven
Next Topic:[EMF Compare] Infos about the planned "patch/changeset model" feature?
Goto Forum:
  


Current Time: Fri Apr 03 01:17:01 GMT 2020

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

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

Back to the top