Bug 45444 Open declaration on local variable doesn't select variable name
Build 20031023 1. Create the following cu: public class X { void foo() { int var = 1; var++; } } 2. Select 'var' in the 'var++;' statement 3. F3 Observe: The cursor goes to the begining of the 'int var = 1;' statement. I would expect that 'var' is selected in this statement.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
Iterator e= new JavaAnnotationIterator(model, true, true);
		while (e.hasNext()) {
			Annotation a= (Annotation) e.next();
			if (a instanceof IJavaAnnotation) {
				IJavaAnnotation annotation= (IJavaAnnotation) a;
				if (annotation.hasOverlay() || !isNavigationTargetType(annotation.getAnnotationType()))
					continue;
			} else if (!isNavigationTargetType(access.getType(a)))
				continue;
				
			Position p= model.getPosition(a);
			if (p != null && p.overlapsWith(offset, length))
				return a;
		}
		
		return null;
	}
	
	/**
	 * Returns whether the given annotation type is configured as a target type
	 * for the "Go to Next/Previous Annotation" actions
	 * 
	 * @param type the annotation type
	 * @return <code>true</code> if this is a target type, <code>false</code>
	 *            otherwise
	 * @since 3.0
	 */
	private boolean isNavigationTargetType(Object type) {
		Preferences preferences= Platform.getPlugin("org.eclipse.ui.editors").getPluginPreferences(); 
		Iterator i= getAnnotationPreferences().getAnnotationPreferences().iterator();