Commit 78f90f7
committed
FindReplaceOverlay: avoid exception while closing workbench window #2666
When closing a workbench window while a find/replace overlay is open and
one of the input fields (find/replace) has focus, an exception is
thrown. This is caused by the FindReplaceOverlay trying to reactive
shortcuts of the underlying editor while the input field is losing
focus, but the handler service to perform the activation in is already
disposed.
Since there is no direct way of determining the underlying handler
service from the overlay to identify whether it is already disposed,
this change makes the overlay simply check for the workbench window
currently being closed. This is reasonable as the reactivation of
handlers is unnecessary if the underlying window is closed anyway.
Fixes #26661 parent b3aa5b0 commit 78f90f7
File tree
1 file changed
+1
-1
lines changed- bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/overlay
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
0 commit comments