Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 User
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
Luis Fernando Robledano-Esteban is currently offline Luis Fernando Robledano-Esteban
Messages: 30
Registered: February 2013
Member
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.


ArkosX

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

Report message to a 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: Fri Aug 01 07:59:51 EDT 2014

Powered by FUDForum. Page generated in 0.04219 seconds