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 11:03 Go to next message
Eclipse UserFriend
Originally posted by:


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?

Re: TreeViewer: getText before treeExpanded [message #1137494 is a reply to message #452261] Mon, 14 October 2013 14:32 Go to previous message
Luis Fernando Robledano-Esteban is currently offline Luis Fernando Robledano-EstebanFriend
Messages: 32
Registered: February 2013
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 14:32]

Report message to a moderator

Previous Topic:Is it possible to change title of PreferenceDialog ?
Next Topic:Toggle Toolbar button
Goto Forum:

Current Time: Fri Oct 20 12:44:49 GMT 2017

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

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