Skip to main content
Jump to: navigation, search

Ecore Tools/New and Noteworthy

< Ecore Tools
Revision as of 14:16, 8 January 2008 by (Talk | contribs) (Add Properties View content)

0.8 M4

Ecore Tools Perspective

Ecore Tools Perspective could be used to activate useful views and arrange them in a default way. You can activate it through "Window > Open Perspective > Other..." and then select the corresponding perspective.

EcoreTools selectEcorePerspective.png

Here is an example of screenshot you can get using the Ecore Tools perspective :

EcoreTools ecorePerspective.png

Ecore project nature

You can create a new Ecore project (this is simply a Project with an Ecore nature). This is not yet currently needed to create such projects for handling ecore model/diagrams, but this might be a basis for implementing further refactoring capabilities ... TBC

EcoreTools newEcoreProject.png

Ecore Tools new Creation wizard

You have the possibility to create a new Ecore diagram from scratch or from an existing Ecore model. In both cases, you can start using the creation wizard that will help you to create and initialize your diagram contents. To start the wizard, select the project where you want to create your model, "Right Click > New > Other..." and then select the corresponding kind of diagram : "Ecore Tools > Ecore Diagram"

EcoreTools newEcoreDiagram.png

Once you have selected the corresponding wizard, click on the "Next" button to open the wizard :

EcoreTools NewEcoreDiagramWizard.png EcoreTools EcoreDiagramFromModelWizard.png

All the informations are grouped into that single wizard page. You have the possibility between

  • creating a new Ecore diagram from scratch : in this case, select the "Create a new Model" option. You have then to select the output directory and specify the name for the domain model. The diagram model will be named using the same name, but using *.ecorediag as the file extension.
  • create a new Ecore diagram from an existing domain file : in this case, select the "Create from an existing model" option. You have then to select the domain model (Note that if you have initially selected the domain model before opening the creation wizard, it is correctly initialized), and then select the EPackage (the root EPackage generally) to be associated with your diagram. Finally you can choose to initialize or not the diagram : it aims at populated or not initial contents into your diagram depending on the existing domain model structure.

Properties View

The Properties View have been improved to propose a "Model" category used to simplify the way of editing properties. You can also modify several features at the same time. File:EcoreTools propertiesView.png

EClass Hierarchy View

EClass References View

Outline View

The Outline View is composed of two parts :

  • an Overview : birdview of the diagram canvas
  • a Navigator : model-oriented tree view of the model which is currently edited.

You can choose to display both parts or just one using toogle buttons :

Ecoretools outline1.PNG Ecoretools outline3.PNG Ecoretools outline2.PNG

The Outline can be synchronized with the selection of the diagram canvas :

Ecoretools outline4.PNG

DND capabilities from outline

Drag and drop from the outline view is enabled with restoration of connections for elements not yet displayed in the current diagram canvas.

Ecoretools dnd.jpg

Label customizations

An additional label is displayed inside the EPackage, EClass, EDataType, EEnum or EAnnotation figure when the corresponding semantic element is represented in another diagram canvas, ie when the graphical occurence is considered as an external element : the label (from package_name) appears under the element name.

Ecoretools label.PNG

Back to the top