Object selected = selection.head();
return (selected instanceof WsdlFileListItem) ? ((WsdlFileListItem) selected).file : null;
}
private KongaList createList() {
KongaListFactory listFactory = ComponentFactories.newKongaListFactory();
listFactory.setVisibleRowCount(4);
listFactory.setPrototypeValue("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
ListStyles.normal().makeOver(listFactory);
KongaList list = listFactory.newList();
list.setSelectionMode(ListSelectionMode.SINGLE_SELECTION);
list.setDefaultAction(new AbstractSelectionAction() {
@Override
public void actionPerformed(ActionEvent e) {