Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to set focus on IPropertySource?
https://www.eclipse.org/forums/index.php/mv/msg/72647/227146/#msg_227146
Originally posted by: pilgrim.us.ibm.com
Hi, When the '+' in a row in the property view is used to expand an
IPropertySource, the focus remains on any previously selected row. I'd
like the focus to shift to the row containing the twisty as if the user
had clicked in that row prior to clicking on the '+'. Is there a way to
get the cell editor so I can do a set focus on it from the
IPropertySource? Or another suggestion? Thanks, Jeff]]>2006-11-29T22:13:15-00:00Re: How to set focus on IPropertySource?
https://www.eclipse.org/forums/index.php/mv/msg/72647/227242/#msg_227242
The Properties view used by GEF comes from Eclipse
(org.eclipse.ui.views.properties.PropertySheetPage). It reads the
selection and focus info from the Tree control
(org.eclipse.swt.widgets.Tree). So the primary reason for not showing
selection or focus on a tree widget for which '+' was pressed comes Tree
control not setting focus or selection on that widget. Try package
explorer for your projects (uses SWT Tree control too, there are other
examples as well) and you'll notice the exact same behavior. You could try
posting this question on Eclipse SWT newsgroup.
Hope this helps.