Home » Eclipse Projects » Rich Client Platform (RCP) » TreeViewer CellEditor
TreeViewer CellEditor [message #464757] |
Thu, 15 March 2007 05:05  |
Eclipse User |
|
|
|
Hi,
I have a tree view , when I double click on tree item, the item must
be in editable mode..
If I set the cell editors like,
tree.setCellEditors(new CellEditor[] { new TextCellEditor(tree) });
tree.setCellModifier(new TreeCellModifier(tree));
tree.setColumnProperties(new String[] {"Customer"});
the problem is , on the selection (on single click)of item itself makes
the item in editing mode but I want only on double click...
Is there any way to the cell editor for selected tree item only, not for
the entire tree.. so that I can include this in mouseDoubleClick event of
tree..
Thanks in advance,
Swetha
|
|
| | |
Re: TreeViewer CellEditor [message #464849 is a reply to message #464830] |
Fri, 16 March 2007 05:06   |
Eclipse User |
|
|
|
Hi,
Hi,
I did the same as mentioned in Snippet provided by you...but it is
not behaving as expected..
In double click event it is not in editable mode..If I click on more
than 3 times then it is in editable mode,
I have run the snippet also, it is also behaving the same... First it
is executing the can modify method, then mouse double click event,,,in
mouse double click event we called setEnabled method...
If the order of execution is reverse... we can get it as expected..
Please help me ...
Thanks,
Swetha
|
|
|
Re: TreeViewer CellEditor [message #464853 is a reply to message #464849] |
Fri, 16 March 2007 06:40  |
Eclipse User |
|
|
|
Hi,
For me the snippet works as expected on 3.3M5. Please note that in the
snippet only the rows 0,2,4,... are editable.
Tom
Swetha schrieb:
> Hi,
>
> Hi,
> I did the same as mentioned in Snippet provided by you...but it is
> not behaving as expected..
>
> In double click event it is not in editable mode..If I click on more
> than 3 times then it is in editable mode,
>
> I have run the snippet also, it is also behaving the same... First it
> is executing the can modify method, then mouse double click event,,,in
> mouse double click event we called setEnabled method...
>
> If the order of execution is reverse... we can get it as expected..
>
> Please help me ...
>
> Thanks,
> Swetha
>
>
--
B e s t S o l u t i o n . a t EDV Systemhaus GmbH
----------------------------------------------------
tom schindl Eclipse JFace Committer
|
|
|
Goto Forum:
Current Time: Tue Jul 15 07:33:09 EDT 2025
Powered by FUDForum. Page generated in 1.08489 seconds
|