문제

I am working on a eclipse rcp application where I am using TableViewer component on a wizard page. I was able to add editing support to the table columns and was able to save the data on the viewer object. Does this edit get saved to actual data? if yes how can I get this updated data within my application to do further processing?

도움이 되었습니까?

해결책

Assuming you are using org.eclipse.jface.viewers.EditingSupport to provide cell editors for the table.

The EditingSupport.setValue method is responsible for setting the new value in the original object provided by the content provider.

To validate values you will either have to write your own CellEditor or use a class derived from one of the existing call editors such as TextCellEditor and overriding appropriate methods.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top