empty IBinding for an entity declaration ?!?! [message #556999] |
Fri, 03 September 2010 14:55 |
Nicolas Anquetil Messages: 20 Registered: May 2010 |
Junior Member |
|
|
Hi,
I have been posting questions on this problem recently.
JDT creates AST with null IBindings for some declared entities.
For example, the declaration of a method would produce a MethodDeclaration node, with a null node.resolveBinding().
After trying to understand that a bit more, I believe this happens when there is some reference from the entity that could not be solved.
Let me explain:
public class LaunchURL
implements IWorkbenchWindowActionDelegate, IExecutableExtension {
[...]
public void init(IWorkbenchWindow window) {
}
[...]
if IWorkbenchWindow is not found, then the binding for the declaration of method init will be null.
Can anyone confirm this?
If so, is there a way to ask it to kindly generate a Binding for method init? (objviously, if it does not know where IWorkbenchWindow is, it will not generate a binding or it!)
Anyway, in my case, I am parsing several java directories (several java project making up an old version of eclipse), one of which contains this IWorkbenchWindow.java.
Although it is not in the same directory as the class LaunchURL, I was assuming JDT would be able to make the link.
From what I can tell, it has all the sources needed to successfully resolve bindings (at least in this precise case, it has all it needs)
Is there something special I should do?
An option? A command? A parameter? ...
thank for your help
nicolas
|
|
|
|
Powered by
FUDForum. Page generated in 0.02968 seconds