DSL editor without launching new Eclipse instance [message #1730714] |
Wed, 27 April 2016 22:14 |
Sina Madani Messages: 160 Registered: November 2015 Location: York, UK |
Senior Member |
|
|
Hi,
I am wondering whether it is possible to use the editor for my DSL within the same Eclipse application that I used to create the grammar (i.e. without right-click -> Run As -> Eclipse Application).
Thanks.
|
|
|
|
|
Re: DSL editor without launching new Eclipse instance [message #1730835 is a reply to message #1730832] |
Thu, 28 April 2016 23:54 |
Miguel Jimenez Messages: 40 Registered: July 2015 |
Member |
|
|
Hello Sina,
I am not an expert, but here are my two cents:
To have your DSL editor working you need to install some plugins into Eclipse. Those plugins correspond to the projects Xtext creates for you (org.eclipse.xtext.mydsl, org.eclipse.xtext.mydsl.ui, etc.); the reason why you need to open a new Eclipse instance is because your current Eclipse (let's call it your development Eclipse) injects those plugins into a new instance, so you can try the editor.
Now, you normally install plugins in Eclipse by using an update site (a URL pointing to a directory containing several jar files -Eclipse plugins-). To do this you click Help > Install new software, and paste that URL in the text box. What Christian is suggesting to you, is to create a local update site for your DSL, so you can manually install the DSL plugins in your development eclipse. I think this would make your development process a little slower than just right click > run as...
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04167 seconds