GridViewer - EditorActivationStrategy per Column [message #58224] |
Thu, 21 August 2008 15:11 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: sf.tragwerk-software.de
Hi,
I want to set different CellEditors for each Column in a Grid.
How can I specify an ActivationStrategy for each CellEditorType ?
E.g. an TextCellEditor should be triggered by any KeyStroke, but an
ComboEditor only on DoubleClick.
Thanks
Sebastian
|
|
|
|
Re: GridViewer - EditorActivationStrategy per Column [message #58274 is a reply to message #58249] |
Fri, 22 August 2008 07:57 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: sf.tragwerk-software.de
Tom,
I wrote an ColumnViewerEditorActivationStrategy which
delegates
isEditorActivationEvent(ColumnViewerEditorActivationEvent event)
to the EditorActivationStrategy of the matching column.
Unfortunately
isEditorActivationEvent(ColumnViewerEditorActivationEvent event)
is protected, so I had to write my own Interface which declares a method
with the same intention.
So all in all, it works. Nervertheless I opened
https://bugs.eclipse.org/bugs/show_bug.cgi?id=244918
Sebastian
Tom Schindl schrieb:
> Hi,
>
> I don't see any chance to make this happen with the current JFace-API.
> Could you please file a bugzilla and CC'me?
>
> Tom
>
> Sebastian Fuchs schrieb:
>> Hi,
>>
>> I want to set different CellEditors for each Column in a Grid.
>> How can I specify an ActivationStrategy for each CellEditorType ?
>>
>> E.g. an TextCellEditor should be triggered by any KeyStroke, but an
>> ComboEditor only on DoubleClick.
>>
>> Thanks
>> Sebastian
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03551 seconds