Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TreeViewer: getText before treeExpanded
TreeViewer: getText before treeExpanded [message #452261] Wed, 16 March 2005 06:03 Go to next message
Eclipse UserFriend
Originally posted by: rrgs2-bol.yahoo.com.br

Hi,

I'm using a TreeViewer and, in my application, the elements' labels depend
on the selected element. So, I want to be able to know when the user
expand an element, do some processing and, then, give the children's
labels. But getText() (in LabelProvider) is called for the children of the
expanded element before treeExpanded() (in ITreeViewerListener). Is there
a way to notice the expansion before the children are shown?

[]'s
Rodrigo
Re: TreeViewer: getText before treeExpanded [message #1137494 is a reply to message #452261] Mon, 14 October 2013 10:32 Go to previous message
Eclipse UserFriend
Does anybody know the answer to this question (now 8 years after)?
I have the same problem: how to get the eventhandler (listener) for the event after the default behavior is executed.
In other development enviroments/libraries, there was a explicit differenciation: something like afterExpand vs. beforeExpand.

[Updated on: Mon, 14 October 2013 10:32] by Moderator

Previous Topic:SWT.RIGHT_TO_LEFT tree doing strange thing with non-alphanumeric characters
Next Topic:How do I right align ccombo text?
Goto Forum:
  


Current Time: Thu Jul 24 11:57:33 EDT 2025

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

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

Back to the top