Create a new Xpand plugin project named xpand.uml2.generator . To tell the Xpand Eclipse plugins that this project is a UML2 specific one, you need to configure the Meta Model contributors. You need to add the UML2 profiles and the EMF Metamodels metamodel contributor. The order of profiles is important! The UML2 profiles entry must be first in the list.
You have to add the following dependencies to the manifest file:
org.eclipse.xtend.typesystem.uml2