GridViewer - EditorActivationStrategy per Column [message #58224] |
Thu, 21 August 2008 11:11  |
Eclipse User |
|
|
|
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 03:57  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Re: GridViewer - EditorActivationStrategy per Column [message #591899 is a reply to message #58224] |
Thu, 21 August 2008 16:28  |
Eclipse User |
|
|
|
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
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
|
Re: GridViewer - EditorActivationStrategy per Column [message #591912 is a reply to message #58249] |
Fri, 22 August 2008 03:57  |
Eclipse User |
|
|
|
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.04577 seconds