[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: having trouble using ViewerSorter
|
> > do I have to save (in an ArrayList, or something else) the content of
the
> > table before appling the sorter and then restore the datas ??
TableViewer will refresh the contents when a sorter is set. Then the method
getElements(..) in your content provider should be called. Is getElements
returning the array with all elements?
Eduardo.
"John Arthorne" <john_arthorne@xxxxxxxx> wrote in message
news:3C07AE38.C3E0B881@xxxxxxxxxxx
> Adding a sorter shouldn't be removing anything from your table. It should
be as
> simple as calling viewer.setSorter(...). Could you post a code snippet
from your
> table and sorter? Maybe someone on the UI team will be able to help you
diagnose
> your problem...
>
>
> Tiger wrote:
>
> > Thanks for the trick ...
> >
> > but I still have my problem .... when I select a Column the content of
the
> > table disappeared :-(
> > do I have to save (in an ArrayList, or something else) the content of
the
> > table before appling the sorter and then restore the datas ??
> >
>