Mario Ortegón
Mario Ortegón

Reputation: 18900

Eclipse RCP: Activating a view from an Editor without losing focus

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

Answers (1)

Mario Ortegón
Mario Ortegón

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

Related Questions