In my current work, I want provide xText editor support ( because of its code completion, syntax high-lighting) to the programmers of my domain specific language. I have written grammar in xText.
To provide xText editor support, I am going to provide programmers with full eclipse IDE with xText plugin installed (available on xText website). However, I get xText editor facility at the cost of the the following manual manual steps (as discussed in 5 mins xText tutorial).
My question is that is there any way, which can atomize (with minimum effort) these tasks (any scripting or any other thing) in a single click?
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 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:
File->Export...->Plug-in Development->Deployable Features
& click Next<your.dsl>.sdk
)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:
Help->Install New Software
Add
to add a new repository, and enter your Repository URL
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.
There are three options that would do such automation for you:
1- Use a general macro recording software such as AutoHotkey
or Sikuli Script
, so you can record these steps and replay them back. You can find similar software as well in this Wikipedia article
2- Use eclipse macro plug-in such as Practically Macro
, which is an open source plugin for eclipse
3- Write your own implementation using Java Robot
class which simply can generate events that are needed for automation such as keyPress
, mousePress
and mouseMove
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With