Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » GridViewer - EditorActivationStrategy per Column
GridViewer - EditorActivationStrategy per Column [message #58224] Thu, 21 August 2008 15:11 Go to next message
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 #58249 is a reply to message #58224] Thu, 21 August 2008 20:28 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5407
Registered: July 2009
Senior Member
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 #58274 is a reply to message #58249] Fri, 22 August 2008 07:57 Go to previous message
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 20:28 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5407
Registered: July 2009
Senior Member
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 07:57 Go to previous message
Sebastian Fuchs is currently offline Sebastian Fuchs
Messages: 94
Registered: July 2009
Member
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
>
>
Previous Topic:GridViewer - EditorActivationStrategy per Column
Next Topic:Header Font does not repaint properly
Goto Forum:
  


Current Time: Wed Oct 22 23:17:09 GMT 2014

Powered by FUDForum. Page generated in 0.02516 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software