listModel = new DefaultListModel();
Set pluginmd =
TokenizationService.getTokenizationService().getTokenizerPluginMetadata();
for (Iterator iter = pluginmd.iterator(); iter.hasNext();) {
TM tm = (TM)iter.next();
listModel.addElement(tm);
}
list = new JList(listModel){
public String getToolTipText(MouseEvent evt) {
int index = locationToIndex(evt.getPoint());
TM item = (TM)getModel().getElementAt(index);
StringBuffer sb = new StringBuffer();
sb.append("<html>");
sb.append(item.description);
sb.append("<br>");
sb.append("Suitable for locales:<br>");