All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.protege.editor.owl.model.selection.FilteringOWLSelectionModelListener Maven / Gradle / Ivy

Go to download

OWL ontology editing infrastructure used by the Protege desktop application.

The newest version!
package org.protege.editor.owl.model.selection;

import org.protege.editor.owl.OWLEditorKit;
import org.semanticweb.owlapi.model.*;


/**
 * Author: Matthew Horridge
* The University Of Manchester
* Bio-Health Informatics Group
* Date: 08-Feb-2007

*/ public class FilteringOWLSelectionModelListener implements OWLSelectionModelListener, OWLEntityVisitor { private OWLEditorKit owlEditorKit; public FilteringOWLSelectionModelListener(OWLEditorKit owlEditorKit) { this.owlEditorKit = owlEditorKit; } public void selectionChanged() { OWLObject owlObject = owlEditorKit.getWorkspace().getOWLSelectionModel().getSelectedObject(); if (owlObject != null && owlObject instanceof OWLEntity) { ((OWLEntity)owlObject).accept(this); } } public void visit(OWLClass cls) { } public void visit(OWLObjectProperty property) { } public void visit(OWLDataProperty property) { } public void visit(OWLAnnotationProperty property) { } public void visit(OWLNamedIndividual individual) { } public void visit(OWLDatatype dataType) { } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy