Commit 44d9ebe
Avoid direct access to deprecated focusPart field in RulerComposite
If a "FocusIn" event is fired for the RulerComposite, the contents of
the RulerViewer should be focused, unless any other part has already
requested focus.
Rather than checking whether the deprecated field is checked, we can
check whether the FOCUS flag has been set for the focused edit part.
This flag is only set when setFocus(...) is called on the EditPartViewer
and should therefore be set exactly when the local variable is set.
Conversely, the focus should be cleared by an "FocusOut" event, unless
any other part has taken the focus.
Contributes to #7781 parent 7d07057 commit 44d9ebe
File tree
1 file changed
+3
-3
lines changed- org.eclipse.gef/src/org/eclipse/gef/ui/rulers
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
| 515 | + | |
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
| 528 | + | |
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| |||
0 commit comments