Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-21-2009, 10:27 AM
Member
 
Join Date: Mar 2008
Posts: 6
Rep Power: 0
Rodrigo Braz is on a distinguished road
Question Adding a node with a TreeViewer; what's wrong?
Hi,

This is a more concise version of a previous post.

This code in a TreeViewer event listener:

insert(((TreeSelection)getSelection()).getFirstEle ment(), newElement, 0);
refresh();
System.out.println("Added new element");

prints the message but doesn't add a node to the tree. Any hints why?

Thanks.

Rodrigo
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 04-24-2009, 08:43 AM
Member
 
Join Date: Mar 2008
Posts: 6
Rep Power: 0
Rodrigo Braz is on a distinguished road
Default
I am puzzled as to why I have not received any replies. I would think that inserting a node to a tree is something pretty much anyone using TreeViewer would have to be able to do, no?

Best,

Rodrigo
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding/removing nodes to tree under TreeViewer Rodrigo Braz SWT / JFace 0 04-20-2009 02:02 AM
Images problem in treeviewer Gandolf SWT / JFace 0 04-03-2009 03:18 PM
[SOLVED] Node traversal using TreeViewer and SelectionEvent xcallmejudasx Advanced Java 1 11-07-2008 10:33 PM
SWT treeviewer sushistix SWT / JFace 4 10-28-2008 10:25 PM
TreeViewer Demonstration Java Tip SWT 0 07-07-2008 05:54 PM


All times are GMT +2. The time now is 08:17 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org