Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "M2T-JET-FAQ/How do I navigate an XMI model with JET?/Using the EMF Reflective Editor"
(New page: The EMF Reflective editor let's you create test documents from an Ecore model that you are developing. Here's how: == Creating an XMI document using the ECore Reflective Editor Create an ...) |
m |
||
Line 1: | Line 1: | ||
The EMF Reflective editor let's you create test documents from an Ecore model that you are developing. Here's how: | The EMF Reflective editor let's you create test documents from an Ecore model that you are developing. Here's how: | ||
− | == Creating an XMI document using the ECore Reflective Editor | + | == Creating an XMI document using the ECore Reflective Editor == |
Create an XMI file based on you ecore model as follows: | Create an XMI file based on you ecore model as follows: | ||
# Open your .ecore file in the ECore editor. | # Open your .ecore file in the ECore editor. |
Latest revision as of 11:18, 10 August 2009
The EMF Reflective editor let's you create test documents from an Ecore model that you are developing. Here's how:
Creating an XMI document using the ECore Reflective Editor
Create an XMI file based on you ecore model as follows:
- Open your .ecore file in the ECore editor.
- Navigate to the class that will be the root element in your document.
- Right click that class, and click Create Dynamic Instance
- Enter a file name, and click OK.
Opening the .XMI file in the ECore Reflective Editor
On my system, the .xmi file opens in the XML editor. To open in the ECore editor, do the following:
- Open your .ecore file
- Right click and choose Load Resource
- Click Browse Workspace and find your .xmi file.
- Click OK