Issue in triggering editing activation with ColumnViewerEditorActivationStrategy [message #587001] |
Mon, 17 December 2007 06:05 |
Supreetha H R Messages: 24 Registered: July 2009 |
Junior Member |
|
|
Hello,
In our RCP application we are making use of GridTableViewer for the grid
represntation. And few columns in the grid are editable. We are making use
of 'ColumnViewerEditorActivationStrategy' to trigger the editing
activation.
I need to enter the editing mode in cell on key pressed(which am able to
using the below code...)
ColumnViewerEditorActivationStrategy actSupport = new
ColumnViewerEditorActivationStrategy(gridViewer) {
protected boolean isEditorActivationEvent(
ColumnViewerEditorActivationEvent event) {
return ( event.eventType ==
ColumnViewerEditorActivationEvent.KEY_PRESSED);
}
};
And using this 'actSupport am creating the GridViewerEditor.
Problem here is, the first keystroke is used to make the cell to enter
into editing mode, because of which am loosing the first key entered and
all the characters after 2nd will be entered in the cell. Is there anyway
to trigger the actvation in cell on any key pressed event, without loosing
the first character?!
Thanks & Regards,
Supreetha H R
|
|
|
Powered by
FUDForum. Page generated in 0.04150 seconds