Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to set focus on IPropertySource?
How to set focus on IPropertySource? [message #227146] Wed, 29 November 2006 22:13 Go to next message
Eclipse UserFriend
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
Re: How to set focus on IPropertySource? [message #227242 is a reply to message #227146] Thu, 30 November 2006 20:59 Go to previous message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi Jeff,

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.

Cheers,
Alex
Previous Topic:Layout a graph with predefined assingments of nodes to rows
Next Topic:Creating a request
Goto Forum:
  


Current Time: Thu Apr 25 21:40:02 GMT 2024

Powered by FUDForum. Page generated in 0.03154 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top