/** * used when hovering. * * @param source the source * @return the description from import * @throws InvalidXMLException the invalid XML exception * @throws IOException Signals that an I/O exception has occurred. */ @Override protected String getDescriptionFromImport(String source) throws InvalidXMLException, IOException { FsIndexCollection parsedImportItem = UIMAFramework.getXMLParser().parseFsIndexCollection( new XMLInputSource(source)); return parsedImportItem.getDescription(); }
/** * Gets the description. * * @return the description */ public String getDescription() { if (editor.isLocalProcessingDescriptor()) return editor.getAeDescription().getMetaData().getDescription(); if (editor.isTypeSystemDescriptor()) return editor.getTypeSystemDescription().getDescription(); if (editor.isTypePriorityDescriptor()) return editor.getTypePriorities().getDescription(); if (editor.isFsIndexCollection()) return editor.getFsIndexCollection().getDescription(); if (editor.isExtResAndBindingsDescriptor()) return editor.getExtResAndBindings().getDescription(); throw new InternalErrorCDE("invalid state"); }