| 
| TableViewer [message #330318] | Fri, 25 July 2008 04:02  |  | 
| Eclipse User  |  |  |  |  | Hi, 
 When I press a button in a toolbar, I need to be able to take into account
 the possible edited new cell values.
 
 The right API for this is:
 TableViewer#applyEditorValue()
 but it is protected, not public.
 Any known workaround for this?
 Thanks for any hint.
 
 David
 |  |  |  | 
|  | 
| 
| Re: TableViewer.applyEditorValue() [message #330421 is a reply to message #330397] | Mon, 28 July 2008 09:06  |  | 
| Eclipse User  |  |  |  |  | As I don't get any feedback, I have created this enhancement in bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=242231
 
 David Perez wrote:
 
 > Does anybody know any solution apart from:
 
 > 1) Calling applyEditorValue() with reflection
 > 2) Deriving TableViewr for making applyEditorValue() visible
 
 > public class MyTableViewer extends TableViewer {
 >     public TableViewer(Composite parent, int style) {
 >         super(parent, style);
 >     }
 
 >     @Override public void applyEditorValue() {
 >         super.applyEditorValue();
 >     }
 > }
 
 > Both of these solutions do work, but I don't like to use a back door for
 > solving this.
 
 > David Perez wrote:
 
 >> Hi,
 
 >> When I press a button in a toolbar, I need to be able to take into account
 >> the possible edited new cell values.
 
 >> The right API for this is:
 >>    TableViewer#applyEditorValue()
 >> but it is protected, not public.
 >> Any known workaround for this?
 >> Thanks for any hint.
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.33417 seconds