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
if (expression instanceof Name) {
				IBinding binding= ((Name) expression).resolveBinding();
				if (binding != expressionTypeBinding)
					res.add(createBinding(expression, binding));
			} else if (expression instanceof MethodInvocation) {
				IMethodBinding binding= ((MethodInvocation) expression).resolveMethodBinding();
				res.add(createBinding(expression, binding));
			} else if (expression instanceof SuperMethodInvocation) {
				IMethodBinding binding= ((SuperMethodInvocation) expression).resolveMethodBinding();
				res.add(createBinding(expression, binding));
			} else if (expression instanceof ClassInstanceCreation) {
				IMethodBinding binding= ((ClassInstanceCreation) expression).resolveConstructorBinding();
				res.add(createBinding(expression, binding));
			} else if (expression instanceof FieldAccess) {
				IVariableBinding binding= ((FieldAccess) expression).resolveFieldBinding();
				res.add(createBinding(expression, binding));
			} else if (expression instanceof SuperFieldAccess) {
				IVariableBinding binding= ((SuperFieldAccess) expression).resolveFieldBinding();
				res.add(createBinding(expression, binding));
			}
		
		
		} else if (node instanceof ConstructorInvocation) {
			IMethodBinding binding= ((ConstructorInvocation) node).resolveConstructorBinding();
			res.add(createBinding(node, binding));
		} else if (node instanceof SuperConstructorInvocation) {
			IMethodBinding binding= ((SuperConstructorInvocation) node).resolveConstructorBinding();
			res.add(createBinding(node, binding));
		} else if (node instanceof MethodRef) {