Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Direct (In-place) editing of a TreeViewer nodes
Direct (In-place) editing of a TreeViewer nodes [message #274815] Thu, 28 October 2004 18:07 Go to next message
Eclipse UserFriend
Originally posted by: gj.puredge.com

I have a ViewPart with a TreeViewer that displays a tree model.

I can add new nodes and edit the names in the Properties View.

is there a way to edit the node names directly, that is to click on a tree
node name and (with a menu, dbl-click or whatever) edit the name of that
node in place?

Thanks
Re: Direct (In-place) editing of a TreeViewer nodes [message #274846 is a reply to message #274815] Fri, 29 October 2004 11:18 Go to previous messageGo to next message
Eclipse UserFriend
Have a look at how we do it in the ResourceNavigator using the
ResourceRenameAction. Most of the relevant code is in
queryNewResourceNameInline().

Tod Creasey
Platform UI Team


"Gary J" <gj@puredge.com> wrote in message news:clrqjl$skm$1@eclipse.org...
> I have a ViewPart with a TreeViewer that displays a tree model.
>
> I can add new nodes and edit the names in the Properties View.
>
> is there a way to edit the node names directly, that is to click on a tree
> node name and (with a menu, dbl-click or whatever) edit the name of that
> node in place?
>
> Thanks
>
>
Re: Direct (In-place) editing of a TreeViewer nodes [message #274865 is a reply to message #274846] Fri, 29 October 2004 12:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gj.puredge.com

Thanks,

Navigator rename was exactly the comparison I was thinking of. Don't know
why I didn't think to look at the source ~:


"Tod Creasey" <tod_creasey@ca.ibm.com> wrote in message
news:cltmvb$vdi$1@eclipse.org...
Have a look at how we do it in the ResourceNavigator using the
ResourceRenameAction. Most of the relevant code is in
queryNewResourceNameInline().

Tod Creasey
Platform UI Team


"Gary J" <gj@puredge.com> wrote in message news:clrqjl$skm$1@eclipse.org...
> I have a ViewPart with a TreeViewer that displays a tree model.
>
> I can add new nodes and edit the names in the Properties View.
>
> is there a way to edit the node names directly, that is to click on a tree
> node name and (with a menu, dbl-click or whatever) edit the name of that
> node in place?
>
> Thanks
>
>
Re: Direct (In-place) editing of a TreeViewer nodes [message #274868 is a reply to message #274846] Fri, 29 October 2004 12:53 Go to previous message
Eclipse UserFriend
Originally posted by: gj.puredge.com

Which cvs eclipse project is the ResourceNavigator source code in?

I'm connected to dev.eclipse.org:/home/eclipse but the
org.eclipse.ui.navigator project is empty.




"Tod Creasey" <tod_creasey@ca.ibm.com> wrote in message
news:cltmvb$vdi$1@eclipse.org...
Have a look at how we do it in the ResourceNavigator using the
ResourceRenameAction. Most of the relevant code is in
queryNewResourceNameInline().

Tod Creasey
Platform UI Team


"Gary J" <gj@puredge.com> wrote in message news:clrqjl$skm$1@eclipse.org...
> I have a ViewPart with a TreeViewer that displays a tree model.
>
> I can add new nodes and edit the names in the Properties View.
>
> is there a way to edit the node names directly, that is to click on a tree
> node name and (with a menu, dbl-click or whatever) edit the name of that
> node in place?
>
> Thanks
>
>
Previous Topic:Problem with custom Ant plugin tasks
Next Topic:Load of Plugin JAR files
Goto Forum:
  


Current Time: Fri Jul 25 21:16:48 EDT 2025

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

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

Back to the top