Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » TableViewer
TableViewer [message #330318] Fri, 25 July 2008 08:02 Go to next message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
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 #330397 is a reply to message #330318] Mon, 28 July 2008 10:52 Go to previous messageGo to next message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
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.

> David
Re: TableViewer.applyEditorValue() [message #330421 is a reply to message #330397] Mon, 28 July 2008 13:06 Go to previous message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
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.
Previous Topic:dynamic context menu in eclipse
Next Topic:How to use core expressions language in my own extension point
Goto Forum:
  


Current Time: Thu Nov 21 12:02:40 GMT 2024

Powered by FUDForum. Page generated in 0.04749 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top