Skip to main content



      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 08:45 Go to next message
Eclipse UserFriend
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 12:24 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Create ecoretools 2 diagram from ecore file [message #1309525 is a reply to message #1297369] Tue, 22 April 2014 15:03 Go to previous message
Eclipse UserFriend
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: Fri Jul 11 23:01:54 EDT 2025

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

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

Back to the top