<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1157206974462930369.post8409653776047871252..comments</id><updated>2007-07-25T09:50:52.594-07:00</updated><title type='text'>Comments on Eclipsisms: JFace TableViewer Sorting using LabelProvider</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://eclipsisms.blogspot.com/feeds/8409653776047871252/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1157206974462930369/8409653776047871252/comments/default'/><link rel='alternate' type='text/html' href='http://eclipsisms.blogspot.com/2007/07/tableviewer-sorting-using-labelprovider.html'/><author><name>Adam Cabler</name><uri>http://www.blogger.com/profile/16116068837432398180</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1157206974462930369.post-8076478388479815006</id><published>2007-07-25T09:50:00.000-07:00</published><updated>2007-07-25T09:50:00.000-07:00</updated><title type='text'>That's true, the label provider doesn't do anythin...</title><content type='html'>That's true, the label provider doesn't do anything special for reordered indices, but in this case there's no need.  The compare method always uses the initial index and so does the label provider, so they should always match.  Since this is on a column basis, it shouldn't care what order it is in the table.  (I could easily have something wrong here, so please let me know)&lt;BR/&gt;However, if there were any issues with this, a method could be added to the inner class to look for a column by its name.  But the label provider would have to be changed as well.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1157206974462930369/8409653776047871252/comments/default/8076478388479815006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1157206974462930369/8409653776047871252/comments/default/8076478388479815006'/><link rel='alternate' type='text/html' href='http://eclipsisms.blogspot.com/2007/07/tableviewer-sorting-using-labelprovider.html?showComment=1185382200000#c8076478388479815006' title=''/><author><name>Adam Cabler</name><uri>http://www.blogger.com/profile/16116068837432398180</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07879890396922058712'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://eclipsisms.blogspot.com/2007/07/tableviewer-sorting-using-labelprovider.html' ref='tag:blogger.com,1999:blog-1157206974462930369.post-8409653776047871252' source='http://www.blogger.com/feeds/1157206974462930369/posts/default/8409653776047871252' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1157206974462930369.post-3109037130469425208</id><published>2007-07-24T22:39:00.000-07:00</published><updated>2007-07-24T22:39:00.000-07:00</updated><title type='text'>but your label provider is not prepared to work wi...</title><content type='html'>but your label provider is not prepared to work with reordered indices? Or am I missing something?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1157206974462930369/8409653776047871252/comments/default/3109037130469425208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1157206974462930369/8409653776047871252/comments/default/3109037130469425208'/><link rel='alternate' type='text/html' href='http://eclipsisms.blogspot.com/2007/07/tableviewer-sorting-using-labelprovider.html?showComment=1185341940000#c3109037130469425208' title=''/><author><name>Tom</name><uri>http://www.blogger.com/profile/06619033174219683085</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://eclipsisms.blogspot.com/2007/07/tableviewer-sorting-using-labelprovider.html' ref='tag:blogger.com,1999:blog-1157206974462930369.post-8409653776047871252' source='http://www.blogger.com/feeds/1157206974462930369/posts/default/8409653776047871252' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1157206974462930369.post-1986041325783515844</id><published>2007-07-24T14:50:00.000-07:00</published><updated>2007-07-24T14:50:00.000-07:00</updated><title type='text'>Hi Tom,   Thanks for the feedback.  This does work...</title><content type='html'>Hi Tom,&lt;BR/&gt;   Thanks for the feedback.  This does work if reordered since it uses the original index.  Also, a name based lookup could be used just as well.&lt;BR/&gt;  And it would be really nice to get something like this in for 3.4.  If nobody is working on this, I would be happy to suggest something.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1157206974462930369/8409653776047871252/comments/default/1986041325783515844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1157206974462930369/8409653776047871252/comments/default/1986041325783515844'/><link rel='alternate' type='text/html' href='http://eclipsisms.blogspot.com/2007/07/tableviewer-sorting-using-labelprovider.html?showComment=1185313800000#c1986041325783515844' title=''/><author><name>Adam Cabler</name><uri>http://www.blogger.com/profile/16116068837432398180</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07879890396922058712'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://eclipsisms.blogspot.com/2007/07/tableviewer-sorting-using-labelprovider.html' ref='tag:blogger.com,1999:blog-1157206974462930369.post-8409653776047871252' source='http://www.blogger.com/feeds/1157206974462930369/posts/default/8409653776047871252' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1157206974462930369.post-1779714985177922850</id><published>2007-07-24T14:38:00.000-07:00</published><updated>2007-07-24T14:38:00.000-07:00</updated><title type='text'>The only reason is that we didn't had time for an ...</title><content type='html'>The only reason is that we didn't had time for an API in 3.3. We first needed to fix all those inconsistency we inherited and we did a fairly good job. Does this code also work if you are reordering the columns? The bug request is https://bugs.eclipse.org/bugs/show_bug.cgi?id=166153?&lt;BR/&gt;&lt;BR/&gt;We are always open for contributions. Think about an API and we'll help you to evolve it and if we are all satisfied the feature can be added. Most likely you should start with ViewerColumn-API which will be the home for such a JFace feature.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1157206974462930369/8409653776047871252/comments/default/1779714985177922850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1157206974462930369/8409653776047871252/comments/default/1779714985177922850'/><link rel='alternate' type='text/html' href='http://eclipsisms.blogspot.com/2007/07/tableviewer-sorting-using-labelprovider.html?showComment=1185313080000#c1779714985177922850' title=''/><author><name>Tom</name><uri>http://www.blogger.com/profile/06619033174219683085</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://eclipsisms.blogspot.com/2007/07/tableviewer-sorting-using-labelprovider.html' ref='tag:blogger.com,1999:blog-1157206974462930369.post-8409653776047871252' source='http://www.blogger.com/feeds/1157206974462930369/posts/default/8409653776047871252' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1157206974462930369.post-7151114061856285661</id><published>2007-07-24T13:31:00.000-07:00</published><updated>2007-07-24T13:31:00.000-07:00</updated><title type='text'>Sure, that would be additional work, but most of t...</title><content type='html'>Sure, that would be additional work, but most of the time, users want the values to be sorted based on what they see, which is the text, rather than some other value intrinsic to the object.  I think this behavior would be pretty unexpected to the user.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1157206974462930369/8409653776047871252/comments/default/7151114061856285661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1157206974462930369/8409653776047871252/comments/default/7151114061856285661'/><link rel='alternate' type='text/html' href='http://eclipsisms.blogspot.com/2007/07/tableviewer-sorting-using-labelprovider.html?showComment=1185309060000#c7151114061856285661' title=''/><author><name>Adam Cabler</name><uri>http://www.blogger.com/profile/16116068837432398180</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07879890396922058712'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://eclipsisms.blogspot.com/2007/07/tableviewer-sorting-using-labelprovider.html' ref='tag:blogger.com,1999:blog-1157206974462930369.post-8409653776047871252' source='http://www.blogger.com/feeds/1157206974462930369/posts/default/8409653776047871252' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1157206974462930369.post-4080743696291438304</id><published>2007-07-24T12:49:00.000-07:00</published><updated>2007-07-24T12:49:00.000-07:00</updated><title type='text'>well, what about sorting values of datatypes other...</title><content type='html'>well, what about sorting values of datatypes other than String? ;)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1157206974462930369/8409653776047871252/comments/default/4080743696291438304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1157206974462930369/8409653776047871252/comments/default/4080743696291438304'/><link rel='alternate' type='text/html' href='http://eclipsisms.blogspot.com/2007/07/tableviewer-sorting-using-labelprovider.html?showComment=1185306540000#c4080743696291438304' title=''/><author><name>Ilya Shinkarenko</name><uri>http://www.blogger.com/profile/11667601571204987473</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://eclipsisms.blogspot.com/2007/07/tableviewer-sorting-using-labelprovider.html' ref='tag:blogger.com,1999:blog-1157206974462930369.post-8409653776047871252' source='http://www.blogger.com/feeds/1157206974462930369/posts/default/8409653776047871252' type='text/html'/></entry></feed>