Reputation: 18900
I have a Tree Table in SWT. I want to show a view when the user starts editing a field on the view. However, I have the problem that when I go into the Editor, the activation of the view steals the focus of the editor, so I can't use it anymore.
What would be the correct way to activate a view from my Tree Cell Editor, without losing Focus?
Upvotes: 2
Views: 4339
Reputation: 18900
The problem was using the method to showView() in the Active Page.
For this particular case, it is necessary to use the method bringToFront() instead of showView(), as bringToFront() does not steal the focus.
Upvotes: 4