rich client 2.0

Polish up your JFace-Viewer! Sorting a table


18. January 2006
Tom Seidel @ 17:12

Today I want to show how to add a sorter to your JFace-Table. The requirement is to sort descending und ascending by clicking on the TableColumn-Header.

JFace already provides sorting-functionality. We just have to provide something like an alogrithm to arrange the items. For that we implemented the CollectionSorter that uses the default Collator from ViewerSorter. (more…)

Support your LabelProvider!! - ImageContribution


16. January 2006
Tom Seidel @ 17:09

In complex applications you also have very many images that want to be placed to the right time on the right place.

Example RCP for Image-Contribution

And because some good software-architects already have concepted the model ;) , in the most cases you want to visualize a special object or a special property of an object with an image in your JFace-List or Tree. Imagine you have 50 JFace-Viewers and 300 different Icons. Do you really want to implement in every LabelProvider how and when to access to which image? I guess, no.

At the following I will provide an easy way to manage image-contribution to your different label-providers. (more…)

Powered by WordPress