Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » CellEditor
CellEditor [message #230085] Wed, 31 January 2007 10:01 Go to next message
Eclipse User
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 06:23 Go to previous message
Divey Jain is currently offline Divey Jain
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 06:25]

Report message to a moderator

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


Current Time: Wed Jul 30 03:06:01 EDT 2014

Powered by FUDForum. Page generated in 0.01576 seconds