Strange issue with selection provider [message #686054] |
Tue, 21 June 2011 14:21 |
Arnaud MERGEY Messages: 243 Registered: March 2010 Location: France |
Senior Member |
|
|
Hello,
I noticed a strange behavior in my application, I have a job that programmatically open/activate a view when a job is finished.
Sometimes, if the job is too short, so the progress dialog is not displayed, it seems to break selection provider, as the focus remains on the activated view.
It is quite hard for me to explain, so in order to illustrate, I manage to write a simple snippet with 2 views, "View" and "OtherView" by right-clicking on a tree item on "OtherView", a menu "My Action for current selection" menu should be displayed.
On coolbar,
"Long Running" action simulates a long running job that programmatically activate "View"
"Short Running" action simulates a short running job that programmatically activate "View"
-launch snippet.focus application
-click on "Long running" action on coolbar
- "View" takes focus.
- right-click on some item in "OtherView", you should see "My Action for current selection" menu.
-then click on "Short running" action on coolbar
-"View" takes focus.
- right-click on some item in "OtherView", the menu does not appear, as the view OtherView does not take focus. The only way to have it taking focus is to click on the header tab of the view.
In my case, this kind of behavior occurs only if the progress dialog is not shown, if the dialog is shown, everything works as expected.
[Updated on: Tue, 21 June 2011 14:22] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02839 seconds