Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Issue in triggering editing activation with ColumnViewerEditorActivationStrategy
Issue in triggering editing activation with ColumnViewerEditorActivationStrategy [message #587001] Mon, 17 December 2007 06:05
Supreetha H R is currently offline Supreetha H RFriend
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
Previous Topic:Horisontal scrolling during column draging
Next Topic:Right click event if not fired on DialogCellEditor
Goto Forum:
  


Current Time: Thu Sep 26 08:36:17 GMT 2024

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

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

Back to the top