[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.nebula] Re: Grid - Inline Editing

Thank you very much. I'll give this a try tomorrow and let you know. Besides that, would this be a valuable feature/enhancement for future JFace releases?

Peter

Tom Schindl schrieb:
Peter Pfeifer schrieb:
Hello Tom.

Thank you very much. I added your changes and now both work like a charm. But that leads me to another question :-) I don't know if I should start a new thread, but first I'll try my luck within this one.

I want to use the grid/gridtableviewer for quick data entry. Therefore I have a special requirement. When the active cell is the really last one in the grid and the user presses the tab-key a new record/row should be added to the grid. It's more or less the same as in MS Word/OO when the user is editing the last cell of a table and pressing the tab-key automatically adds one new row.

Is this also possible to be done with the grid/gridtableviewer?


That's not an easy task but doable with some hacks. Because we are past API-Freeze in JFace 3.4 it is to late to introduce such a feature at JFace level and I don't think GridViewer should introduce an API itself.


Having said this you can solve "quite simply" your own and staying with the current API but enhancing it (See the files attached). This is only one solution you could also use Reflection for example.

Tom