ICatalogEntry entry = getXMLCatalogEntry();
return entry != null ? entry.getURI() : null;
}
public ICatalogEntry getXMLCatalogEntry() {
ICatalogEntry result = null;
ISelection selection = tableViewer.getSelection();
Object selectedObject = (selection instanceof IStructuredSelection) ? ((IStructuredSelection) selection).getFirstElement() : null;
if (selectedObject instanceof ICatalogEntry) {
result = (ICatalogEntry) selectedObject;
}