protected void processChanges(List<? extends OWLOntologyChange> changes) { final List<OWLAnnotationProperty> properties = provider.getAnnotationProperties(); for (OWLOntologyChange change : changes) { if (change.isAxiomChange() && change.getAxiom().getAxiomType().equals(AxiomType.ANNOTATION_ASSERTION)) { OWLAnnotationAssertionAxiom ax = (OWLAnnotationAssertionAxiom) change.getAxiom(); // @@TODO we need some way to determine whether the rendering really has changed due to these axioms // otherwise we're telling a whole load of things to update that don't need to if (properties.contains(ax.getProperty())){ OWLAnnotationSubject subject = ax.getSubject(); if (subject instanceof IRI) { IRI iri = (IRI) subject; OWLDataFactory factory = getOWLModelManager().getOWLDataFactory(); fireRenderingChanged(factory.getOWLClass(iri)); fireRenderingChanged(factory.getOWLObjectProperty(iri)); fireRenderingChanged(factory.getOWLDataProperty(iri)); fireRenderingChanged(factory.getOWLAnnotationProperty(iri)); fireRenderingChanged(factory.getOWLNamedIndividual(iri)); } } } } }
protected void processChanges(List<? extends OWLOntologyChange> changes) { final List<OWLAnnotationProperty> properties = provider.getAnnotationProperties(); for (OWLOntologyChange change : changes) { if (change.isAxiomChange() && change.getAxiom().getAxiomType().equals(AxiomType.ANNOTATION_ASSERTION)) { OWLAnnotationAssertionAxiom ax = (OWLAnnotationAssertionAxiom) change.getAxiom(); // @@TODO we need some way to determine whether the rendering really has changed due to these axioms // otherwise we're telling a whole load of things to update that don't need to if (properties.contains(ax.getProperty())){ OWLAnnotationSubject subject = ax.getSubject(); if (subject instanceof IRI) { IRI iri = (IRI) subject; OWLDataFactory factory = getOWLModelManager().getOWLDataFactory(); fireRenderingChanged(factory.getOWLClass(iri)); fireRenderingChanged(factory.getOWLObjectProperty(iri)); fireRenderingChanged(factory.getOWLDataProperty(iri)); fireRenderingChanged(factory.getOWLAnnotationProperty(iri)); fireRenderingChanged(factory.getOWLNamedIndividual(iri)); } } } } }
protected void processChanges(List<? extends OWLOntologyChange> changes) { final List<OWLAnnotationProperty> properties = provider.getAnnotationProperties(); for (OWLOntologyChange change : changes) { if (change.isAxiomChange() && change.getAxiom().getAxiomType().equals(AxiomType.ANNOTATION_ASSERTION)) { OWLAnnotationAssertionAxiom ax = (OWLAnnotationAssertionAxiom) change.getAxiom(); // @@TODO we need some way to determine whether the rendering really has changed due to these axioms // otherwise we're telling a whole load of things to update that don't need to if (properties.contains(ax.getProperty())){ OWLAnnotationSubject subject = ax.getSubject(); if (subject instanceof IRI) { IRI iri = (IRI) subject; OWLDataFactory factory = getOWLModelManager().getOWLDataFactory(); fireRenderingChanged(factory.getOWLClass(iri)); fireRenderingChanged(factory.getOWLObjectProperty(iri)); fireRenderingChanged(factory.getOWLDataProperty(iri)); fireRenderingChanged(factory.getOWLAnnotationProperty(iri)); fireRenderingChanged(factory.getOWLNamedIndividual(iri)); } } } } }