You can drag & drop existing elements to the diagram from the Outline view.
Adding existing classes to ecorediagram
-
01-06-2022 - |
Domanda
I want to edit my ecore model in a diagram. I created an ecorediag
but I cannot find any way to add the existing classes in it. The only way it works is if I use the "Initialize the diagram with existing domain model objects". But if I create new classes or accidentally remove them, there is no way I could add them again.
Soluzione
Altri suggerimenti
Smth's obviously not working right for you because that should be reasonably easy. Two options I'm aware of:
- If you reveal the palette (it might be collapsed to a little triangle in the top-left hand corner of your ecorediag), the EClass icon (2nd from top) lets you create a new EClass by drag-dropping it onto the diagram.
- If this isn't working for some obscure reason, you could go to the ecore model linked to your diagram, right-click an EPackage and select New Child->EClass. That new class can then be dragged & dropped onto your diagram.
Hope this helps; let me know if not.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow