|Re: select the last added row in a table [message #501821 is a reply to message #501687]
||Thu, 03 December 2009 22:24
| Wim Jongman
Registered: July 2009
Hi Luca, |
I am not certain what you want exactly but your question I can answer. The
inputChanged method of your content provider passes the viewer. You can cast
that to your viewer (table, tree, etc..) and work with it.
-- The fear of loss is a path to the Dark Side.
YODA, Star Wars Episode III: Revenge of the Sith
> I've got a tableviewer within a view that is based on a WritableList model.
I'd like to programmatically select the last added row in the model, but I
don't know what is the best practice for doing this. The model is wrapped in
the table content provider, and a new line is added thru an editor, so do I
need to make the content provider aware of the table viewer it is serving (so
to set the selection on it when a new element is added)?
> Is there any better way of doing it?
Powered by FUDForum
. Page generated in 0.06401 seconds