This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse Modeling Framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse Modeling Framework" Watch "Eclipse Modeling Framework" New topic
Author

Eclipse Modeling Framework

Joe Pluta
Ranch Hand

Joined: Jun 23, 2003
Posts: 1376
Welcome Eclipse Modeling Framework authors!
I like the fact that when I click on your book on Amazon.com, it provides a "people who bought this book also bought..." link to my book .
Anyway, a couple of questions. To start with, EMF is a plugin to Eclipse and as such has some tutorial documentation and the like. Do you recommend going through that (especially the tutorial) prior to reading your book?
Second, I dont quite understand the development flow. The obvious direction is from UML to Java, but is there bidirectional capability? Can I make changes in the generated Java code and get them back into the UML?
Joe
Deep Chand
Ranch Hand

Joined: Dec 17, 2002
Posts: 133
May be it is one of the dumbest questions ever. I just browsed through the initial pages of EMF book on amazon.com...looks cool...Is this EMF plugin available for free?
Thanks,
Deep
Joe Pluta
Ranch Hand

Joined: Jun 23, 2003
Posts: 1376
Not a dumb question at all, Deep! I was checking that out myself . From what I can tell, EMF is a free plugin. Not only that, unless I'm mistaken, it's open source, which means we can peek under the covers!
Joe
Juan Rolando Prieur-Reza
Ranch Hand

Joined: Jun 20, 2003
Posts: 236
Originally posted by Joe Pluta:
... direction is from UML to Java, but is there bidirectional capability? Can I make changes in the generated Java code and get them back into the UML?...

I'm throwing in my own sombraro on this question. It seems to me that any respectable IDE must provide full reverse-engineering capabilities.


Juan Rolando Prieur-Reza, M.S., LSSBB, SCEA, SCBCD, SCWCD, SCJP/1.6, IBM OOAD, SCSA
Frank Budinsky
Author
Greenhorn

Joined: Sep 08, 2003
Posts: 28
Hi all.
EMF is indeed an open source sub-project at eclipse. You can download the runtime and source code for free from the emf project web site.
As far as getting started, the overview documents and tutorials available from the emf web site are just as good a starting point as the book, although I think chapter 2 of the book is the best overall introduction to what EMF is all about. Fortunately you can read chapter 2 before you buy the book, because its the excerpt chapter at amazon.com.
EMF definitely supports modification/roundtripping of generated code. EMF is really intended to integrate modeling with programming (see chapter 2) like never before, so hand modification of generated classes is not only allowed - it's expected.
Frank.


Lead author of <a href="http://www.amazon.com/exec/obidos/ASIN/0131425420/qid%3D1064321221/sr%3D11-1/ref%3Dsr%5F11%5F1/102-1364017-8080960" target="_blank" rel="nofollow">Eclipse Modeling Framework</a>.
Joe Pluta
Ranch Hand

Joined: Jun 23, 2003
Posts: 1376
Eclipse 3.0 is going to have significant impact, especially on plugins. Do you know whether the EMF project is working on this issue already, and what effect it might have on EMF?
Joe
Dave Steinberg
Author
Greenhorn

Joined: Aug 18, 2003
Posts: 20
Joe,
We're already hard at work on EMF 2.0, and we've been using the Eclipse 3.0 milestone builds for that. The switch was very smooth, so we don't anticipate any significant problems for EMF users at this point.
Cheers,
Dave


Author of <a href="http://www.amazon.com/exec/obidos/ASIN/0131425420/ref=jranch-20" target="_blank" rel="nofollow">Eclipse Modeling Framework</a>
Bill Dudney
Author
Ranch Hand

Joined: Sep 05, 2003
Posts: 234
Hi All,
For what its worth I have been using EMF for about 3 weeks and I love it. I have just over 20 classes modeled and I've done lots of round tripping.
The book was great to get me started and I am going back to if often to jog the gray matter.
All in all a great package.
Quick Question: I'd like to run my model outside of eclipse along with (I think anyway) the EMF.Edit generated code. I have been successful in runnin the model alone (with the instructions from the book) but I have not tried the .Edit stuff yet. What I'm trying to do is build a Swing UI that can edit my EMF model. Any guidance would be appreciated.


TTFN,<br /> <br />-bd-<br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/0471449156/qid=1064343733/sr=2-1/ref=sr_2_1/002-8375300-3666449" target="_blank" rel="nofollow">Jakarta Pitfalls</a> | <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0471146153/qid=1064343733/sr=1-2/ref=sr_1_2/002-8375300-3666449?v=glance&s=books" target="_blank" rel="nofollow">J2EE AntiPatterns</a> | <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0471462071/qid=1064343733/sr=1-3/ref=sr_1_3/002-8375300-3666449?v=glance&s=books" target="_blank" rel="nofollow">Mastering JavaServer Faces</a> | <a href="http://bill.dudney.net/roller/page/bill" target="_blank" rel="nofollow">Blog</a> | <a href="http://www.jroller.com/page/BillDudney" target="_blank" rel="nofollow">Eclipse Blog</a> | <a href="http://www.sourcebeat.com/TitleAction.do?id=2" target="_blank" rel="nofollow">Eclipse 3 Live</a>
Ed Merks
Author
Greenhorn

Joined: Sep 08, 2003
Posts: 8
To use EMF.Edit or your .edit plugins outside of Eclipse you need to make sure that plugin.properties files and icons subdirectory are visible on the classpath as if they appear in the directory/package of the XyzEditPlugin class in the .edit plugin. The EMF plugins with a runtime jar of the form xyz.resources.jar are there for use on the standalone classpath. For your generated .edit plugin, you can copy the plugin.properties and the icons folder to the folder/package of the XyzEditPlugin for a builder to pick up.


Author of <a href="http://www.amazon.com/exec/obidos/ASIN/0131425420/qid%3D1064320896/sr%3D11-1/ref%3Dsr%5F11%5F1/102-6891814-9849714" target="_blank" rel="nofollow">Eclipse Modeling Framework</a>
Bill Dudney
Author
Ranch Hand

Joined: Sep 05, 2003
Posts: 234
Thanks Ed,
So if I understand correctly I need to have access to the generated .edit stuff (i.e. the plugin.xml etc) and the *.resources.jar files in all the emf plugins?
Ed Merks
Author
Greenhorn

Joined: Sep 08, 2003
Posts: 8
Bill, you need access only to plugin.properties (containing string resources) and to the icons folder (containing image resources), but not the plugin.xml or anything other than the .class files. You'll also need the jars in those EMF plugins that your plugins depend on.
 
Don't get me started about those stupid light bulbs.
 
subject: Eclipse Modeling Framework