|
Re: CheckBoxTreeViewer and CellEditor combination is buggy [message #1454 is a reply to message #678] |
Wed, 06 May 2009 10:23 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
philipp huebner schrieb:
> Hello together,
>
> I'm posting this here because I can't find a JFace related newsgroup.
> Today I've finished my work with a JFace TreeViewer with Check Boxes and
> a Cell Editor for in-place editing and discoverd some issues. I'm on
> winxp 32.
>
> no Double Click:
> It uses a textfiled, so when you single click on a tree item, the
> textfield will get focus and the tree can't react on double click's any
> more! The windows behaviour is to wait 0,5 sec before editing, cause it
> waits for double click.
so what would you expect to happen on double click. Please note that our
Editing code has special handling when the editor is enabled and a
double click is happening in time of the defined double click => we are
then firing a double click which you get by attaching a
IDoubleClickListener on the viewer. If you want to mimic the Windows
behaviour I'd say you could customize
ColumnViewerEditorActivationStrategy to return false on single click and
then wait 0,5 sec and active the editor using viewer.editElement().
>
> text field stays:
> when you delete the tree item just editing, the text field will stay in
> the tree
>
Who is deleting/disposing the item? Looking at our code we are attaching
a dipose-listener on the current item which cancels the editing
> text field reacts on checkbox click:
> if you click a checkbox of a selected treeItem, thze edit mode will
> activated, because a checkbox click fires a mouse-up event...
>
I see. We need to see if the mouse event informs us about this being a
check-toggeling but we also pass on all informations to you in our
ColumnViewerEditorActivationStrategy. If no such information is passed
we might have to check the widget bounds to find out the click happened
on the checkbox and not at the widget-content.
Tom
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02714 seconds