Eclipse Plugin ContentAssist suggestions [message #1761033] |
Fri, 05 May 2017 13:01 |
Michal Michal Messages: 1 Registered: May 2017 |
Junior Member |
|
|
Hello,
Im currently took over an eclipse plugin we have developed in our company. The plugin works with XML based language, that we use for scripting (basically our language).
Currently the plugin (ContentAssist) can suggest XML elements and attributes. We would like to exceed it to suggest also variables. Im looking for some best practices or guide what will be the best way to do it.
We do not do any build, only a validation, what is done by Editor. We have 3 types of variables, temporary, local and global.
Temporary is availalbe within one element.
Local is available within a parent element (so its availble to child elements).
Glogal is availalbe within a context, but is more files and be part of the same context.
So Im going to work with a lot of data here.
Example:
<onStart device="${#Project#deviceAddress}">
<text>$local:myText<text>
</onStart>
onStart is element and device is attribute.
Any ideas? I dont think there is some tool I can use, so I need to create it myself.
Thank you
|
|
|
Powered by
FUDForum. Page generated in 0.02667 seconds