Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » VariableDeclarationFragment /resolveBinding() is returning null
VariableDeclarationFragment /resolveBinding() is returning null [message #922953] Tue, 25 September 2012 13:37
San Kallada is currently offline San KalladaFriend
Messages: 3
Registered: August 2012
Junior Member
Hi All,

I'm trying to develop a plugin for Eclipse to generate code for one of our internal framework. As you can see I'm trying to create an AST parser for a Type which is dynamically identified.
private void parse(Vector categories,ICompilationUnit icompUnit) {
		  ASTParser parser1 = ASTParser.newParser(AST.JLS4); 
		   IJavaProject project = icompUnit.getJavaProject();
		  Document doc= null;
			try {
				doc = new Document(icompUnit.getSource());
			} catch (JavaModelException e1) {
				// TODO Auto-generated catch block
		  CompilationUnit parsedUnit =
		  parsedUnit.accept(new FVisitor(parsedUnit,categories));

But in the visitor (MyVisitor),
public boolean visit(VariableDeclarationFragment node) {

node.resolveBinding()is returning null.
Please help me to solve this issue by giving some pointers.


[Updated on: Tue, 25 September 2012 13:51]

Report message to a moderator

Previous Topic:ScrolledComposite is not displaying scroll bars
Next Topic:markerResolution to add quick fixes has no effect
Goto Forum:

Current Time: Sat May 26 04:25:07 GMT 2018

Powered by FUDForum. Page generated in 0.02096 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top