Bug 43645 StructureSelection: should be smarter from empty selection
- int i= 11 * 22 - 33; - set cursor to before 11, Edit > Expand Selection To > Next Element -> expected: selection == "11" (same as when cursor is inside 11) -> was: selection == "i= 11 * 22 - 33" (same as Expand To > Enclosing Element)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/selectionactions/StructureSelectNextAction.java
public StructureSelectNextAction(JavaEditor editor, SelectionHistory history) {
		super(JavaEditorMessages.getString("StructureSelectNext.label"), editor, history); 
		setToolTipText(JavaEditorMessages.getString("StructureSelectNext.tooltip")); 
		setDescription(JavaEditorMessages.getString("StructureSelectNext.description")); 
		WorkbenchHelp.setHelp(this, IJavaHelpContextIds.STRUCTURED_SELECT_NEXT_ACTION);
	}
	
	/*
	 * This constructor is for testing purpose only.
	 */
	public StructureSelectNextAction() {
	}
		
	/* non java doc
	 * @see StructureSelectionAction#internalGetNewSelectionRange(ISourceRange, ICompilationUnit, SelectionAnalyzer)