Property Sheet only picks up selection after focus in RCP [message #262965] |
Wed, 21 July 2004 20:53 |
Chris Longfield![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=clongfield%40internap.com) Messages: 111 Registered: July 2009 |
Senior Member |
|
|
I'm having a weird bit of behavior.
I have a property sheet that displays properties of my model objects
that the user selects from a tree. The tree viewer gets set as a
selection provider for the site. The user can also right click on the
tree nodes and open the model objects for editing. Fine.
The weird part is, my property sheet does not display anything if I just
start the app and select nodes in the tree. I can select this one or
that and no properties. But as soon as I open one for editing, the
property sheet 'wakes up' and starts displaying the properties of
whatever the current selection is.
I can also get the property shet to start paying attention to the
selection by clicking on the sheet itself, either a button or whatever,
just to give it the focus.
So I have a hack to make it pay attention by finding the view and
requesting the focus after the workbench is up. But this is ugly. What
is going on here?
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.03289 seconds