Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Editing tree item in TreeViewer
Editing tree item in TreeViewer [message #465031] Thu, 22 March 2007 05:52 Go to next message
Swetha is currently offline SwethaFriend
Messages: 68
Registered: July 2009
Member
Hi All,

I want to edit the name of the tree item in TreeViewer..

If I click on already selected item it should be in editing mode...

So in SWT.Mousedown event how can I capture whether the item is already
selected or not...so that if the item is already selected, I will process
the editing logic...



Thanks in advance,
Swetha
Re: Editing tree item in TreeViewer [message #465036 is a reply to message #465031] Thu, 22 March 2007 08:55 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Well editing in Viewers is always the same process. Please see the our
JFace-Snippet collection.

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/

The logic to only start up the editor if the item has been selected
previously is the same than the one you use to make an editor pop up on
double click.

Tom

Swetha schrieb:
> Hi All,
>
> I want to edit the name of the tree item in TreeViewer..
> If I click on already selected item it should be in editing mode...
>
> So in SWT.Mousedown event how can I capture whether the item is already
> selected or not...so that if the item is already selected, I will
> process the editing logic...
>
>
>
> Thanks in advance,
> Swetha
>
>


--
B e s t S o l u t i o n . a t EDV Systemhaus GmbH
----------------------------------------------------
tom schindl Eclipse JFace Committer
Previous Topic:Can't run my RCP after export as product
Next Topic:EFS question
Goto Forum:
  


Current Time: Sat Sep 07 12:27:00 GMT 2024

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

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

Back to the top