I have created a table viewer with input as a List<String>
with the default array-content provider, column label provider.
In addition to that I have added the EditingSupport for that column.
EditingSupport#setValue(java.lang.Object element, java.lang.Object value)
The problem am facing is not able to change the string contents after the cell is being edited. Using a default TextCellEditor.
In the function setValue
the element and value are strings. Can anyone provide some suggestions.
Since it is not possible to change the value of a String
you will have to change the model used by your content provider to use a class which contains the string. You can then call methods of that class to set the new value.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.