| Summary: | Open on selection shouldn't require selection | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Nick Edgar <n.a.edgar> |
| Component: | Core | Assignee: | David Audel <david_audel> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | CC: | kai-uwe_maetzel |
| Version: | 2.0 | Keywords: | accessibility |
| Target Milestone: | 2.0 M3 | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
|
Description
Nick Edgar
Since accessibility is an important feature for 2.0 I think we should look into this. There was also a recent EC post about finding the decl for a method. Somebody pointed him at F3, but he complained about having to select the whole word. if we do it we should do it consistently (e.g. search should do the same). I fixed it for OpenOnSelectionAction and OpenOnHierarchySelectionAction. Dani, please add the corresponding change to OpenSearchDialogAction. What you have to do is, if the selection is a ITextSelection, call something like OpenOnSelectionAction.expandToWord(ITextSelection). Agree to add the feature to Java search but not text search. I don't like that also existing selections are expanded (e.g. if I select Object in the work ObjectStreamField and press F3 I would expect class Object to be opened. Idee is to move Claude's code to the StructuredSelectionProvider. - Filed a new PR against JSearch to use StructuredSelectionProvider - Backward parsing needs help from JCore. backed out change in OpenOnSelectionAction and OpenHierarchyOnSelectionAction To ensure that this is: 1) done consistently all over in the UI (e.g. refactoring is yet another example) 2) done correctly (determining the proper token boundaries) This could be done as part of ICodeAssist.codeSelect(int offset, int length). When length == 0 then the. Moving to Jdt Core for comment What is it that you would precisely want ? If length==0, then it would find take the entire token starting at offset ? This is quite easy to do on our side. Now in ICodeAssist.codeSelect(int offset, int length), when length == 0 then the SelectionEngine select the entire token. Fixed |