I'm working on a plugin, the work is based on the study of the Erlang plugin.
I have a problem with the method findParentDescriptor of the BuildRootIndex class.
In my code, I have the following
BuildRootIndex buildRootIndex = context.getProjectDescriptor().getBuildRootIndex();
root = buildRootIndex.findParentDescriptor(new File(filePath), targetTypes, context);
I always get null value for root. I guess it is because I'm missing something about when the table used by this function should be populated. My question is
- what is the purpose of the class BuildRootDescriptors
- do I have to populate the table manually, if so when am I suppose to do it
- is there some entry to add to the file plugin.xml to have this doing the job