Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » CellEditor
CellEditor [message #230085] Wed, 31 January 2007 15:01 Go to next message
Eclipse UserFriend
Originally posted by: aleksandr_kravets.iwaysoftware.com

Hello,

I implemented CellEditor and DirectEditManager for
RequestConstants.REQ_OPEN in my EditPart. I am looking for a way to make
SWT.CR event save the changes and close the cell editor instead of
performing using carriage return function(right now I need to click
outside of the cell editor for it close). Also, I want to check if the
text in the cell editor is 0 and not allow saving of it and keeping cell
editor open. Any suggestions on this? What listeners do I need to use?

thanks!
Alex
Re: CellEditor [message #773720 is a reply to message #230085] Mon, 02 January 2012 11:23 Go to previous message
Divey Jain is currently offline Divey JainFriend
Messages: 1
Registered: January 2012
Junior Member
Hello,

I implemented celleditor with ICellModifier.
I am using combo in one of the cells in the table.
The cell no. is 2 in the row.
What i have done is that, on entering some value in this second combo cell,
i am calling two methods to fill/populate left and right cells.
Now, i want to get a list of values in the combo on entering some text and hitting enter(SWT.CR)
and then i want to select a value from that list to call those two methods.
The scenario fails because on editing a cell and hitting enter, it calls modify method of ICellModifier,
which immediately calls the populate method in the modify method and instead of getting the whole list and selecting from it,
there is only a single value selected in combo box and left & right cells gets populated.

Any suggestions on this?
How can i use enter key event to avoid such a situation..

Thanks
Divey

[Updated on: Mon, 02 January 2012 11:25]

Report message to a moderator

Previous Topic:Why is ShortestPathConnectionRouter is a final class?
Next Topic:Custom layers
Goto Forum:
  


Current Time: Thu Mar 28 17:25:32 GMT 2024

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

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

Back to the top