Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Create ecoretools 2 diagram from ecore file
Create ecoretools 2 diagram from ecore file [message #1290796] Thu, 10 April 2014 12:45 Go to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
Hi,

I want to create a diagram for an existing ecore file, using the
not-yet-released Ecoretools 2 based on Sirius. The way I currently do
this is to create a new project with a new model, replace the new
model's ecore with my original ecore, open the diagram and use add in
the palette to add each element individually. It's nice that references
between added elements are automatically created, but it is still
tedious to this manually for each EClass.

Is there a way to do this in one operation, preferably right-click in
the ecore file and select an action?

Hallvard
Re: Create ecoretools 2 diagram from ecore file [message #1297369 is a reply to message #1290796] Tue, 15 April 2014 16:24 Go to previous messageGo to next message
Cedric Brun is currently offline Cedric BrunFriend
Messages: 431
Registered: July 2009
Senior Member
You can right click on the background of the diagram and pick "Add related Elements" the next popup will prompt you with all the EClasses and you can select them and click on "ok".

You can also drag&drop the EClasses you want to import from the Model Explorer directly into the diagram.


http://cedric.brun.io news and articles on eclipse and eclipse modeling.
Re: Create ecoretools 2 diagram from ecore file [message #1309525 is a reply to message #1297369] Tue, 22 April 2014 19:03 Go to previous message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
Cedric,

Thanks for your answer!

Is there an easy way to relate a new diagram to an existing ecore file?
As mentioned, I currently do this by replacing the one auto-created with
the diagram with the old one.

Hallvard

On 15.04.14 18:24, Cedric Brun wrote:
> You can right click on the background of the diagram and pick "Add
> related Elements" the next popup will prompt you with all the EClasses
> and you can select them and click on "ok".
>
> You can also drag&drop the EClasses you want to import from the Model
> Explorer directly into the diagram.
Previous Topic:[Texo] Database foreign key constraints
Next Topic:[EMFForms] Embedding EMFForms to my own RAP App
Goto Forum:
  


Current Time: Wed Apr 21 06:57:17 GMT 2021

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

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

Back to the top