I've been working on an Xtext-based Eclipse plugin for a language we use in-house. This language might have a statement of the form:
run : /some/file/path/foo.txt
... and ultimately I want to provide a custom Location provider so that pressing F3 on the filepath will open up the file in a new editor in Eclipse. I haven't had a chance yet to try this out, but does anyone see anything wrong with the following approach?
Any advice is appreciated, thanks
The approach sounds good to me. You could provide content assist for paths as well by customizing the proposal provider. A validation rule for the file reference may be helpful, too.
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