if (availableList.getSelectedIndices().length > 0) {
Object selected = availableModel.getElementAt(availableList.getSelectedIndex());
if (selected instanceof Resource) {
Resource resource = (Resource) selected;
lName.setText(resource.getPresentationName());
Capability cap = getCapability(resource.getCapabilities(), "jmp3renamer");
String vendor = null;
if(cap != null) {
vendor = (String) cap.getProperties().get("Bundle-Vendor");
}
lAuthor.setText(vendor != null ? vendor : "N/A");
lVersion.setText(resource.getVersion().toString());
lStatus.setText(I18N.translate("not_installed"));
taDescription.setText((String) resource.getProperties().get(Resource.DESCRIPTION));