use of edu.stanford.bmir.protege.web.shared.event.BrowserTextChangedEvent in project webprotege by protegeproject.
the class BrowserTextChangedEventComputer method translateOntologyChanges.
@Override
public void translateOntologyChanges(Revision revision, ChangeApplicationResult<?> changes, List<ProjectEvent<?>> projectEventList) {
Set<OWLEntity> processedEntities = new HashSet<>();
for (OWLOntologyChange change : changes.getChangeList()) {
for (OWLEntity entity : hasChangeSubject.getChangeSubjects(change)) {
if (processedEntities.add(entity)) {
String shortForm = shortFormProvider.getShortForm(entity);
String oldShortForm = shortFormMap.get(entity);
if (oldShortForm == null || !shortForm.equals(oldShortForm)) {
projectEventList.add(new BrowserTextChangedEvent(entity, shortForm, projectId));
}
}
}
}
}
Aggregations