Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
M2T-JET-FAQ/How do I navigate an XMI model with JET?/Using the EMF Reflective Editor
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