Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to start?
How to start? [message #416923] Wed, 20 February 2008 14:52 Go to next message
Eclipse UserFriend
Originally posted by: krischik.users.sourceforge.net

Hello,

Simple questions: How do you start using EMF?

I ask because all Wizards and Doku [1] I found (and I found quite a few)
want to "import" some existing model, source code - whatever.

But: It's a new project - there is nothing to import. Well, there are
two java files I could import but following the instructions on [1] I
end up on a wizard page asking for the "package" - but I have not
packages yet.

It all seem so incredible difficult.

Martin

[1]
--
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com
Re: How to start? [message #416927 is a reply to message #416923] Wed, 20 February 2008 15:11 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,

lots of excellent tutorials are available here:
http://www.eclipse.org/modeling/emf/docs/

I did also document something here:
http://www.vogella.de/articles/EclipseEMF/article.html.

Best regards, Lars
Re: How to start? [message #416948 is a reply to message #416923] Wed, 20 February 2008 20:34 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Martin,

You can certainly build a new model from scratch, but you need to decide
on a way to define it. You might use annotated Java in which case
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. emf.doc/tutorials/clibmod/clibmod.html
will help. You could also create an Ecore model directly. How are you
wanting to define your model?


Martin Krischik wrote:
> Hello,
>
> Simple questions: How do you start using EMF?
>
> I ask because all Wizards and Doku [1] I found (and I found quite a
> few) want to "import" some existing model, source code - whatever.
>
> But: It's a new project - there is nothing to import. Well, there are
> two java files I could import but following the instructions on [1] I
> end up on a wizard page asking for the "package" - but I have not
> packages yet.
>
> It all seem so incredible difficult.
>
> Martin
>
> [1]


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to start? [message #416964 is a reply to message #416927] Thu, 21 February 2008 10:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: krischik.users.sourceforge.net

Lars Vogel schrieb:

> lots of excellent tutorials are available here:
> http://www.eclipse.org/modeling/emf/docs/
>
> I did also document something here:
> http://www.vogella.de/articles/EclipseEMF/article.html.

Well, this worked - and I also saw that EMF might not be what I want. I
thought it is al little like Rational Rose but it is not. I might be
mistaken but it seems that EMF forces it's class framework on me and
this is not useful for me as I target JavaME.

In Rational Rose on the other the code generator and code analyser was
in depended from the framework use.

Sorry to have bothers you.

Martin
--
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com
Re: How to start? [message #416965 is a reply to message #416964] Thu, 21 February 2008 11:35 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
There are few suppress flags that you can set in your genmodel, which
should create an API without any EMF dependencies.

- Prakash

Eclipse Tips: http://blog.cypal-solutions.com
Eclipse Search: http://www.cypal.in/eclipsesearch


Martin Krischik wrote:
> Lars Vogel schrieb:
>
>> lots of excellent tutorials are available here:
>> http://www.eclipse.org/modeling/emf/docs/
>>
>> I did also document something here:
>> http://www.vogella.de/articles/EclipseEMF/article.html.
>
> Well, this worked - and I also saw that EMF might not be what I want. I
> thought it is al little like Rational Rose but it is not. I might be
> mistaken but it seems that EMF forces it's class framework on me and
> this is not useful for me as I target JavaME.
>
> In Rational Rose on the other the code generator and code analyser was
> in depended from the framework use.
>
> Sorry to have bothers you.
>
> Martin
Re: How to start? [message #416966 is a reply to message #416964] Thu, 21 February 2008 12:00 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080900090108000506020707
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Martin,

EMF is many things including a compact runtime that works with JavaME:

http://ed-merks.blogspot.com/2008/01/emf-and-ercp-two-great- things-that-go.html

Of course you could use EMF just to draw class diagrams (i.e., the EMFT
project's Ecore Tools component has a nice editor). And, if you really
don't need notification, change recording, copying, XML serialization or
anything else like that, you could change the templates to generate
whatever it is you do want, e.g., the EMFT's EMF4Net component generates
C# and provides a C# runtime.


Martin Krischik wrote:
> Lars Vogel schrieb:
>
>> lots of excellent tutorials are available here:
>> http://www.eclipse.org/modeling/emf/docs/
>>
>> I did also document something here:
>> http://www.vogella.de/articles/EclipseEMF/article.html.
>
> Well, this worked - and I also saw that EMF might not be what I want.
> I thought it is al little like Rational Rose but it is not. I might be
> mistaken but it seems that EMF forces it's class framework on me and
> this is not useful for me as I target JavaME.
>
> In Rational Rose on the other the code generator and code analyser was
> in depended from the framework use.
>
> Sorry to have bothers you.
>
> Martin


--------------080900090108000506020707
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Martin,<br>
<br>
EMF is many things including a compact runtime that works with JavaME:<br>
<blockquote><a
href=" http://ed-merks.blogspot.com/2008/01/emf-and-ercp-two-great- things-that-go.html"> http://ed-merks.blogspot.com/2008/01/emf-and-ercp-two-great- things-that-go.html</a><br>
</blockquote>
Of course you could use EMF just to draw class diagrams (i.e., the EMFT
project's Ecore Tools component has a nice editor).  And, if you really
don't need notification, change recording, copying, XML serialization
or anything else like that,  you could change the templates to generate
whatever it is you do want, e.g., the EMFT's EMF4Net component
generates C# and provides a C# runtime.<br>
<br>
<br>
Martin Krischik wrote:
<blockquote cite="mid:47bd5254$1@news.post.ch" type="cite">Lars Vogel
schrieb:
<br>
<br>
<blockquote type="cite">lots of excellent tutorials are available
here: <a class="moz-txt-link-freetext" href="http://www.eclipse.org/modeling/emf/docs/">http://www.eclipse.org/modeling/emf/docs/</a>
<br>
<br>
I did also document something here:
<a class="moz-txt-link-freetext" href="http://www.vogella.de/articles/EclipseEMF/article.html">http://www.vogella.de/articles/EclipseEMF/article.html</a>.
<br>
</blockquote>
<br>
Well, this worked - and I also saw that EMF might not be what I want. I
thought it is al little like Rational Rose but it is not. I might be
mistaken but it seems that EMF forces it's class framework on me and
this is not useful for me as I target JavaME.
<br>
<br>
In Rational Rose on the other the code generator and code analyser was
in depended from the framework use.
<br>
<br>
Sorry to have bothers you.
<br>
<br>
Martin
<br>
</blockquote>
<br>
</body>
</html>

--------------080900090108000506020707--


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Referring a EClass from another model
Next Topic:[Announcement] Release of XMF 2.0 under EPL
Goto Forum:
  


Current Time: Wed Apr 24 22:43:21 GMT 2024

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

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

Back to the top