Moving TreeItems [message #64417] |
Wed, 12 February 2003 08:44 |
Eclipse User |
|
|
|
Originally posted by: OscarMartin.es.ibm.com
Hello
I have an org.eclip.swt.widgets.Tree and I would like to implement "Up" and
"Down" buttons, i.e. when an item is selected and "Up" is pressed i want the
item to be placed before the previous item with the same parent
Cheers
|
|
|
Re: Moving TreeItems [message #64463 is a reply to message #64417] |
Wed, 12 February 2003 13:41 |
Eclipse User |
|
|
|
Originally posted by: ash371952.hotmail.com
Look at AbstractTreeViewer methods getPreviousItem and getNextItem. This
code gives you an idea how to implement this behaviour.
"Oscar Martin" <OscarMartin@es.ibm.com> wrote in message
news:b2d01s$9su$1@rogue.oti.com...
> Hello
>
> I have an org.eclip.swt.widgets.Tree and I would like to implement "Up"
and
> "Down" buttons, i.e. when an item is selected and "Up" is pressed i want
the
> item to be placed before the previous item with the same parent
>
> Cheers
>
>
|
|
|
Re: Moving TreeItems [message #64486 is a reply to message #64463] |
Wed, 12 February 2003 13:50 |
Eclipse User |
|
|
|
Originally posted by: adam_kiezun.ch.ibm.spam.protection.com
afaik, you'll have to dispose() them in their current locations
and create their copies in the new locations
a.
------------------
eclipse.org
------------------
|
|
|
Powered by
FUDForum. Page generated in 0.04016 seconds