CheckBoxTreeViewer and CellEditor combination is buggy [message #678] |
Wed, 06 May 2009 06:05  |
Eclipse User |
|
|
|
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.
text field stays:
when you delete the tree item just editing, the text field will stay in
the tree
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...
|
|
|
Re: CheckBoxTreeViewer and CellEditor combination is buggy [message #1454 is a reply to message #678] |
Wed, 06 May 2009 06:23   |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
|
Re: CheckBoxTreeViewer and CellEditor combination is buggy [message #1680 is a reply to message #1669] |
Thu, 07 May 2009 08:46  |
Eclipse User |
|
|
|
Hi,
ColumnViewerEditor adds the listener on the item. What version of JFace
are you using.
The code you showed us is not enough what we need is a real snippet we
can use to see the problems in action.
Use one of our existing ones [1] and modify it so that we can see the
problems you are having at our local workstations.
Tom
[1]http://wiki.eclipse.org/JFaceSnippets
philipp huebner schrieb:
> dispose: which code implements a dispose listener? not mine. I use
> standandrd api which ends in a dangling textfield?!?
>
|
|
|
Powered by
FUDForum. Page generated in 1.04074 seconds