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:


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?

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

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..


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

Report message to a moderator

Previous Topic:Background Image / Limiting Drawing Area
Next Topic:connections z-order and container EditParts
Goto Forum:

Current Time: Fri Dec 03 08:18:09 GMT 2021

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

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

Back to the top