Access of Project Files in custom class extending IdeContentProposalProvider

回眸只為那壹抹淺笑 提交于 2020-01-06 15:32:27

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!