Commit 04c96e4
committed
Find/Replace overlay: fix content assist not available in Java files
Ctrl+Space in the overlay's search/replace fields never opened content
assist in Java files because ContentAssistCommandAdapter activates its
handler on the workbench-root IHandlerService without an expression,
while the target editor keeps a part-scoped handler for the same command
permanently active via ActivePartExpression. Since handler conflicts are
resolved by evaluated source priority regardless of context nesting, the
editor's higher-priority activation always wins, independent of where
focus actually is.
Fix this by registering an ordinary FindReplaceOverlayAction for the
content-assist command, the same way EDIT_FIND_AND_REPLACE is already
handled: activated through registerAction()'s overlayFocusedExpression,
which alone already outranks the editor's ActivePartExpression-based
activation regardless of which IHandlerService the activation lives
on, so no separate, part-scoped override mechanism is needed for this.
Fixes #26511 parent ce4e10f commit 04c96e4
1 file changed
Lines changed: 10 additions & 0 deletions
File tree
- bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/overlay
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| 504 | + | |
| 505 | + | |
504 | 506 | | |
505 | 507 | | |
506 | 508 | | |
| |||
976 | 978 | | |
977 | 979 | | |
978 | 980 | | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
979 | 989 | | |
980 | 990 | | |
981 | 991 | | |
| |||
0 commit comments