Results 1 to 2 of 2
  1. #1
    Rodrigo Braz is offline Member
    Join Date
    Mar 2008
    Posts
    6
    Rep Power
    0

    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

  2. #2
    Rodrigo Braz is offline Member
    Join Date
    Mar 2008
    Posts
    6
    Rep Power
    0

    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

Similar Threads

  1. Adding/removing nodes to tree under TreeViewer
    By Rodrigo Braz in forum SWT / JFace
    Replies: 0
    Last Post: 04-20-2009, 01:02 AM
  2. Images problem in treeviewer
    By Gandolf in forum SWT / JFace
    Replies: 0
    Last Post: 04-03-2009, 02:18 PM
  3. [SOLVED] Node traversal using TreeViewer and SelectionEvent
    By xcallmejudasx in forum Advanced Java
    Replies: 1
    Last Post: 11-07-2008, 09:33 PM
  4. SWT treeviewer
    By sushistix in forum SWT / JFace
    Replies: 4
    Last Post: 10-28-2008, 09:25 PM
  5. TreeViewer Demonstration
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-07-2008, 04:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •