TreeViewer inline editing [message #460859] |
Fri, 09 September 2005 03:51 |
Eclipse User |
|
|
|
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 #460979 is a reply to message #460959] |
Tue, 13 September 2005 18:27 |
Eclipse User |
|
|
|
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 #460997 is a reply to message #460995] |
Wed, 14 September 2005 08:31 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04857 seconds