This article explains how to add the RepreZen nature and required builders to a Eclipse project that also contains Java or other types of source code.
1. Make .project file visible in the Project Explorer
Eclipse hides the .project and other resources files by default.
To make it visible, click the little triangle icon in the top-right corner of the Project Explorer and choose "Customize view...":
Then, unselect the ".resources" checkbox and on confirm by pressing "OK":
2. Back up the .project file
NOTE: The next steps involve direct editing of the Eclipse .project file. We recommend that you back up your .project file before making changes.
3. Open the .project file in the editor
The .project file will now be visible. It's available in the root of your project. Double-click on it to open and navigate to the "Source" tab:
4. Add RepreZen Builders and Natures to the .project file
This is what a generic Java project file looks like. We will be adding modifications at the points indicated by the arrows:
Add the builders by pasting the following code just before the closing "</buildSpec>" tag:
<buildCommand> <name>org.eclipse.xtext.ui.shared.xtextBuilder</name> <arguments> </arguments> </buildCommand> <buildCommand> <name>com.modelsolv.reprezen.ui.RepreZenBuilder</name> <arguments> </arguments> </buildCommand> <buildCommand> <name>org.eclipse.m2e.core.maven2Builder</name> <arguments> </arguments> </buildCommand>
Add the natures by pasting this code just before the closing "</natures>" tag:
<nature>com.modelsolv.reprezen.zenNature</nature> <nature>org.eclipse.xtext.ui.shared.xtextNature</nature> <nature>org.eclipse.m2e.core.maven2Nature</nature>
After that your .project file will look like this:
That's it! Refresh the project and you are good to go!