Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Moving TreeItems
Moving TreeItems [message #64417] Wed, 12 February 2003 08:44 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
------------------
Previous Topic:Connection Anchor
Next Topic:Image handles and draw2d exception
Goto Forum:
  


Current Time: Sun Jun 30 13:50:54 GMT 2024

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

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

Back to the top