Bug 85226 [1.5] EnumConstantDeclaration should declare resolveConstructorBinding
I20050209 (jdt-core of 20050215) EnumConstantDeclaration should allow me to query its method binding, as declaring an enum constant also invokes a constructor: enum Natural { ONE(1), TWO(2); private final int fInt; Natural(int n) { fInt= n; } } I would expect a method similar to ClassInstanceCreation: public IMethodBinding resolveConstructorBinding();
org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/views/ASTViewContentProvider.java
case IBinding.VARIABLE:
					label= "> variable binding"; 
					break;
				case IBinding.TYPE:
					label= "> type binding"; 
					break;
				case IBinding.METHOD:
					label= "> method binding"; 
					break;
				case IBinding.PACKAGE:
					label= "> package binding"; 
					break;
				default:
					label= "> unknown binding"; 
			}
		}
		return new Binding(parent, label, binding, true);
	}
	
	
	private Object createExpressionTypeBinding(ASTNode parent, ITypeBinding binding) {
		String label= "> (Expression) type binding"; 
		return new Binding(parent, label, binding, true);
	}
	
	public boolean hasChildren(Object parent) {
		return getChildren(parent).length > 0;
	}
}