# Setting up the generator project

In order to make it a bit less painless to work with Eclipse EMF (we would have to export the plugins, restart Eclipse, etc. etc.), we start another Eclipse in the IDE. This instance is called the Runtime Workbench . Therefore select the `xpand.demo.emf.datamodel.edit` project and choose from the context menu Run As → Eclipse Application.

Figure 10. Launch runtime platform

If you are using a Mac or *nix you should now open the workspace preference page and change the default encoding to ISO-8859-1.[4]Import the `xpand.demo.emf.datamodel` project from your original workspace.[5] Note that importing the project does not physically move the files,[6] so you can have the project be part of both workspaces at the same time.

Create a new Xpand Project[7] called `xpand.demo.emf.datamodel.generator`. Do not choose the option "Generate a simple example".

Figure 11. Create new Xpand project

Your Xpand project will already be configured for use of EMF models. You can check this in the project properties dialog:

Figure 12. Project properties

[4] Window → Preferences → General → Workspace → Text file encoding. This is necessary to have the guillemet brackets available.

[5] File → Import → General → Existing Project into Workspace

[6] Unless you checked the option "Copy projects into workspace"

[7] File → New → Project → Xpand → Xpand Project