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
throw new BadLocationException();
						else if (Character.isUpperCase(character)) {
							++offset;
							break;
						}
						
						order= iterator.previous();
						next= CollationElementIterator.tertiaryOrder(order);
						if (next <= previous)
							previous= next;
						else
							break;
					} while (order != CollationElementIterator.NULLORDER);
					
					position= position - buffer.length() + offset - 1;
					character= document.getChar(position);
					while (position >= 0 && Character.isUpperCase(character))
						character= document.getChar(--position);
					setCaretPosition(position + 1);
					getTextWidget().showSelection();
					fireSelectionChanged();
					return;
				}
			} catch (BadLocationException exception) {
				
			}
			super.run();
		}
		/**
		 * Sets the caret position to the sub-word boundary given with <code>position</code>.