* external" ontology functionality.
*/
void createNewFromFile(CreateOntologyInfo createOntologyInfo) {
createNewBase();
OtherOntologyData otherOntologyData = null;
BaseOntologyInfo baseOntologyInfo = createOntologyInfo != null ? createOntologyInfo.getBaseOntologyInfo() : null;
if ( baseOntologyInfo instanceof TempOntologyInfo ) {
// TODO check actual type of ontology data? It should be OtherOntologyData in this case.
otherOntologyData = (OtherOntologyData) baseOntologyInfo.getOntologyData();
}
else {
// create (empty) data for the ontologyInfo
otherOntologyData = new OtherOntologyData();
}
ontologyInfo.setOntologyData(otherOntologyData);
// create dataPanel