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?
- Override IHyperlinkHelper to make my filepath rule cross-referencable
- Override ILocationInFileProvider to make the filepath rule do the Eclipse magic to open the file in a new editor
Any advice is appreciated, thanks