|
A new Eclipse instance will be run and a new workbench will appear; in this instance, our Entities DSL implementation is available. So let's create a new General project (call it, for instance, sample). Inside this project, create a new file; the name of the file is not important, but the file extension must be entities (remember that this was the extension we chose in the Xtext project wizard). As soon as the file is created, it will also be opened in a text editor, and you will be asked to add the Xtext nature to your project. You should accept that to make your DSL editor work correctly in Eclipse.
The editor is empty, but there is no error since an empty program is a valid Entities program (remember how the Model rule was defined with the operator *). If you access content assist (with Ctrl + Space bar), you will get no proposal; instead, the entity keyword is inserted for you. This is because the generated content assist is smart enough to know that in that particular program context there is only one valid thing to do: start with the keyword entity. |
|