return label;
}
private StructuredViewer createStylesViewer(Composite parent)
{
StructuredViewer stylesViewer = new ListViewer(parent, SWT.SINGLE
| SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER);
stylesViewer
.setComparator(new ViewerComparator(Collator.getInstance()));
stylesViewer.setLabelProvider(new LabelProvider()
{
@Override
public String getText(Object element)
{
Object description = fStyleToDescriptionMap.get(element);
if (description != null)
return description.toString();
return super.getText(element);
}
});
stylesViewer.setContentProvider(new ITreeContentProvider()
{
public void dispose()
{
}