Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsPaste Data
https://www.eclipse.org/forums/index.php/mv/msg/487471/1058629/#msg_1058629
I want to implement a copy / paste mechanism for the NatTable.
For copy I use the default org.eclipse.nebula.widgets.nattable.copy.action.CopyDataAction. Works fine.
Is there a possibility to use a default paste action which calls the setValue(int columnIndex, int rowIndex, Object newValue) method of the IRowDataProvider?
At the moment I have registered a KeyBinding (CTRL+v) in the UIBindingregistry and manage the paste manually. Is there a better / easier way to do this?
Thank you!]]>David Hein2013-05-14T15:04:12-00:00Re: Paste Data
https://www.eclipse.org/forums/index.php/mv/msg/487471/1058797/#msg_1058797
Of course we could think about a default implementation in NatTable. But without looking at it in much more detail it would look like what you implemented, with additional checks for editable state, conversion and validation safety. It would also need to take care of the sructure of the selected and copied cells. And of course it wouldn't be configured by default then.
For now, no there is no default implementation I would know.]]>Dirk Fauth2013-05-15T07:31:34-00:00Re: Paste Data
https://www.eclipse.org/forums/index.php/mv/msg/487471/1058816/#msg_1058816
thank you for your answer. Lets see what the future brings.]]>David Hein2013-05-15T08:52:21-00:00Re: Paste Data
https://www.eclipse.org/forums/index.php/mv/msg/487471/1781918/#msg_1781918
How can I process CTRL+V pressing if I'm trying to paste something to an editable cell?]]>Maksim Shchekotov2018-02-14T15:54:55-00:00Re: Paste Data
https://www.eclipse.org/forums/index.php/mv/msg/487471/1781931/#msg_1781931
Dirk Fauth2018-02-14T17:07:04-00:00Re: Paste Data
https://www.eclipse.org/forums/index.php/mv/msg/487471/1781990/#msg_1781990
I had to copy several cells from Excel to the filter row. I made this using custom FilterRowTextCellEditor implementation as an extension of MultiLineTextCellEditor. Not sure than it is the perfect way but maybe it would be helpful for somebody.]]>Maksim Shchekotov2018-02-15T14:31:45-00:00