OK I'm really not sure I understand your question. So I'll re-state what I think you're asking, and answer that. Apologies if I've misunderstood - please let me know.
So - I think you're saying:
- You've developed an xtext grammar for your language
- You want your users to be able to use the editor xtext has generated for the language
- right now, the only way you know how to do this is to have your users emulate what you did (install xtext, create a new project,
copy in your grammar, run the generator, create a runtime instance &
then finally create files in your DSL)
You want to fix step 3. So your users can just create a new project then create a new file with your DSL extension and start editing.
If that's correct then the easiest approach is:
- Select
File->Export...->Plug-in Development->Deployable Features
& click Next
- Select your DSL project in the list of features (
<your.dsl>.sdk
)
- Select a directory for the resulting repository and click
Finish
Eclipse will generate an installable feature for you in the target dir. You then need to make the repository dir available to your users by publishing somewhere they can access. This is your Repository URL
.
Your users then need to:
- Install a standard eclipse distribution (the modeling tools one is suitable)
- Select
Help->Install New Software
- Click
Add
to add a new repository, and enter your Repository URL
- Select your feature in the list & install
From there they can create new projects & files. If they create a file with your DSL extension, your xtext-generated editor will be loaded automatically.
You can make their job even easier by generating an eclipse product. To do that you'll first need to create a product specification then use the File->Export->Plugin Development->Eclipse Product
. That will create a standalone eclipse IDE with your plugin pre-installed. So your users can just install and go. There's a good tutorial here for this.
hth.