Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » changing text of tree items(using setText)
changing text of tree items [message #1449295] Tue, 21 October 2014 06:24 Go to next message
charlie schindler is currently offline charlie schindlerFriend
Messages: 26
Registered: June 2014
Junior Member
i have a handler class which needs to set text of the tree items in the GUI.
the tree is like
> expandable treeitem
- treeitem 1
- treeitem 2

i want to change the text of "expandable treeItem", "treeitem 1", ....

this seems not to work:

TreeItem clusterItem = selectedForm.getTreeWidget().getTopItem();
clusterItem.setText("gaga");

selectedForm is an instanceOf dialog, the GUI i want to change the text.

The tree widget is exposed so i can access it from my handler class

what do i do wrong?
Re: changing text of tree items [message #1450496 is a reply to message #1449295] Wed, 22 October 2014 14:02 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
Two observations:
- When you ask a question like this, you should always post a complete example/test case showing what you are actually doing
- This is the wrong forum for this question. SWT/JFace/Swing HowTo questions should be posted to those relevant forums. This forum is for questions about how to use or extend WindowBuilder.
Re: changing text of tree items [message #1450848 is a reply to message #1450496] Thu, 23 October 2014 01:36 Go to previous message
charlie schindler is currently offline charlie schindlerFriend
Messages: 26
Registered: June 2014
Junior Member
thx for the observations

[Updated on: Thu, 23 October 2014 01:39]

Report message to a moderator

Previous Topic:where can i download the org.eclipse.wb.internal.* packages
Next Topic:Creating my own editor
Goto Forum:
  


Current Time: Fri Nov 16 02:56:31 GMT 2018

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

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

Back to the top