Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TreeViewer inline editing
TreeViewer inline editing [message #460859] Fri, 09 September 2005 03:51 Go to next message
Eclipse UserFriend
Originally posted by: osipov.appliedtech.ru

Is there a possibility to inline edit the names of nodes in a tree swt
widget using TreeViewer?
thanks a lot in advance for your reply.
Re: TreeViewer inline editing [message #460861 is a reply to message #460859] Fri, 09 September 2005 03:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: osipov.appliedtech.ru

I mean there is such a possibility for TableViewers using TableEditor, but
for TreeViewer I could find nothing.
Re: TreeViewer inline editing [message #460959 is a reply to message #460861] Tue, 13 September 2005 08:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: osipov.appliedtech.ru

guys, could anybody give me an answer, eh?
Re: TreeViewer inline editing [message #460979 is a reply to message #460959] Tue, 13 September 2005 18:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mehow.remove.neurosoft.net

I used TreeViewer.setCellEditors() and TreeViewer.setCellModifier() for
this purpose. I did it once though, so I'm not an expert.
Hope this helps.

Michal

Peter Osipov napisał(a):
> guys, could anybody give me an answer, eh?
>
>
>
Re: TreeViewer inline editing [message #460995 is a reply to message #460979] Wed, 14 September 2005 04:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: osipov.appliedtech.ru

yep, it should help. thanks a lot indeed! did it work for your tree?
Re: TreeViewer inline editing [message #460997 is a reply to message #460995] Wed, 14 September 2005 08:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mehow.remove.neurosoft.net

Peter Osipov wrote:
> yep, it should help. thanks a lot indeed! did it work for your tree?

Yes, the only think I didn't like about it was that the TextCellEditor
was taking the whole width of a tree, while I wanted it to look like in
Navigator view when e.g. you change the name of a project. But I guess
the mechanism used there is completely different.

Michal
Re: TreeViewer inline editing [message #460999 is a reply to message #460997] Wed, 14 September 2005 09:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: osipov.appliedtech.ru

thanks for your reply once again.
Oh, right!
so it will cover my tree while I edit just one node? that is peculiar! is
there a way to set the size of a TextCellEditor?
Re: TreeViewer inline editing [message #461022 is a reply to message #460999] Wed, 14 September 2005 19:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mehow.remove.neurosoft.net

Peter Osipov napisał(a):
> thanks for your reply once again.
> Oh, right!
> so it will cover my tree while I edit just one node? that is peculiar! is
> there a way to set the size of a TextCellEditor?

Not the whole tree, only the node being edited (and only the column
being edited unless it's the only column). Try it, and you'll see yourself.

Michal
Re: TreeViewer inline editing [message #461031 is a reply to message #461022] Thu, 15 September 2005 03:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: osipov.appliedtech.ru

Ok! thanks a lot - I'll try. By the way, I would really appreciate, if you
gave me a sample code, eh? It would be really nice of you.

> Peter Osipov napisa
Re: TreeViewer inline editing [message #466004 is a reply to message #461031] Wed, 28 December 2005 16:38 Go to previous message
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
If you still want an alternate solution, you might find Snippet 111 of some use:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet111.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

HTH,
Paul
Previous Topic:How can I get text selection events from the Browser widget?
Next Topic:MS Office 2003 task pane
Goto Forum:
  


Current Time: Mon Dec 02 23:38:14 GMT 2024

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

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

Back to the top