[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Property Sheet only picks up selection after focus in RCP

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