Community
Participate
Working Groups
I have a TableViewer, and a ContentProvider that implements IStructuredContentprovider. When setting the input of the tableviewer to a concrete Object (that is not null), inputChanged() is called at the content provider, but getElements() is not. If, however, I create an ArrayList with only the mentioned Object in it, and pass that to setInput(), getElements() fires.
Created attachment 46809 [details] example code
Please provide a stand-alone example runnable by anybody without needing to code anything.
Moreover if you are already using a viewer you should not grab all those informations from the tableItem. -------------8<------------- TableItem [] ti = table_Bestellpositionen.getSelection(); ... -------------8<------------- Why not wrap your table_Bestellpositionen into a TableViewer and call viewer.getSelection().
Is anything in your .log? Do you use a virtual table?
Hitesh is now responsible for watching bugs in the [Viewers] component area.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.