Project: JDT
Bug 43645 StructureSelection: should be smarter from empty selection
Reported: 2003-09-25 08:43:06 | Status: verified fixed

- 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)

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/StructureSelectionAction/A_testZeroLength1.java org.eclipse.jdt.ui.tests.refactoring/resources/StructureSelectionAction/A_testZeroLength2.java org.eclipse.jdt.ui.tests.refactoring/resources/StructureSelectionAction/A_testZeroLength3.java org.eclipse.jdt.ui.tests.refactoring/resources/StructureSelectionAction/A_testZeroLength4.java org.eclipse.jdt.ui.tests.refactoring/resources/StructureSelectionAction/A_testZeroLength5.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/actions/StructureSelectionActionTests.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/selectionactions/StructureSelectNextAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/selectionactions/StructureSelectPreviousAction.java