ontologyPanel.setLayout(new BoxLayout(ontologyPanel, BoxLayout.Y_AXIS));
ontologyPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder
(BorderFactory.createLineBorder(Color.LIGHT_GRAY), "Ontology Selection"),
BorderFactory.createEmptyBorder(3, 3, 3, 3)));
ModelManager model = this.getWorkspace().getEditorKit().getModelManager();
OWLModelManager owlModel = null;
if(model instanceof OWLModelManager){
owlModel = (OWLModelManager) model;
}
Set<OWLOntology> ontologies = owlModel.getActiveOntologies();