How to integrate xtext plugin inside custom project [message #1732613] |
Wed, 18 May 2016 09:34 |
Eclipse User |
|
|
|
HI,
I have created my own custom project which contains structure
MyProject
|-> src
|-> bin
I could create my own custom project using plugin development. I want to add my xtext editor nature to this project if it has file.mydsl extension.
To be simple: I have custom project plugin, and I have xtext editor plugin. I want to add xtext editor plugin inside my custom project.
Can anyone please tell me?
|
|
|
Re: How to integrate xtext plugin inside custom project [message #1732617 is a reply to message #1732613] |
Wed, 18 May 2016 03:28  |
Eclipse User |
|
|
|
Hi,
what do you mean by "integrating"
per se the installation of the xtext editor (your plugin) and the project has nothing to do with each other.
to work properly with xtext (any dsl) the project needs the xtext builder and xtext nature.
this is by default done it you open the editor (NatureAddingEditorCallback)
have a look at the implementation on how to programmatically add natures and builders
(this is a task that is generally not xtext specific)
|
|
|
Powered by
FUDForum. Page generated in 0.25370 seconds