I'm using a GMF editor with xtext. In order to get xtext running corectly, it's necessary to add the xtext nature to the project. Is there way to do this automatically when I create a new gmf diagram. Therefor I'm using the following creation wizard:
<extension point="org.eclipse.ui.newWizards" id="creation-wizard">
<description>Creates a new Productline</description>
Is there a chance to extend the creation wizard in order to add a xtext nature to the project?
I'm a little confused as to what you want to achieve precisely, but as far as programmatically adding the nature to a project goes, this thread came to mind: http://www.eclipse.org/forums/index.php/m/718205/
Especially the two lines mentioned during the last post may be of interest?
From what I understand you have both a textual Xtext file and a graphical representation of it. Where and when do you want to add the nature now, automatically?