问题
For creating custom content Provider in Xtext, I need to understand all project context. I need to access all other files present in the project/folder.
More Information:
Our Xtext based language have custom completion proposal, error markers. All these components require doing a custom build. For building, we need access to all files and folders present inside our project. ( They have cross-references)
For completion proposal, I have created my own Xtend class in IDE module as:
CustomContentProposalProvider extends IdeContentProposalProvider
Here, I want to find out all other files present in the folder along with current line and column number and file content.
Is there any way to achieve this kind of behavior? Does Xtext provide any approach/API in IDE module which gives projects and it's file content access?
来源:https://stackoverflow.com/questions/42502267/access-of-project-files-in-custom-class-extending-idecontentproposalprovider