Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] inserting in tree

Hi everybody, 

i'm new to Eclipse and have been trying few things
with swt tree control (not TableTree)

I'm wondering whether it is possible to insert a
TreeItem at a desired position in the tree. I don't
want to drag and drop the item, instead the scenario
is like this -  

eg. suppose i have data - 1,2,3,4
so when i'm adding Treeitem in the tree i can enter
anyone of these 4 values. suppose i added 2, next when
i add 1 it should get added before 2 in the tree. is
this possible. 
I tried using setInsertMark() but couldn't understand
the actual use of it.

Or is there any alternative using which i can achieve
this.

Thanks in advance.
viki




________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
       visit http://in.tv.yahoo.com


Back to the top