private void handleEditRepositories() { OntologyCatalogManager catalogManager = getOWLModelManager().getOntologyCatalogManager(); File activeCatalogFile = OntologyCatalogManager.getCatalogFile(catalogManager.getActiveCatalog()); try { OntologyLibraryPanel.showDialog(getOWLEditorKit(), activeCatalogFile); calculatePossibleImports(); } catch (Exception e) { LoggerFactory.getLogger(EditActiveOntologyLibraryAction.class) .error("An error occurred whilst editing the active ontology library: {}", e); } }
private void calculatePossibleImports() { GetImportsVisitor getter = new GetImportsVisitor(); XMLCatalog library = getOWLEditorKit().getOWLModelManager().getOntologyCatalogManager().getActiveCatalog(); if (library != null) { for (Entry e : library.getEntries()) { e.accept(getter); } } importListModel.clear(); for (ImportInfo ii : getter.getImports()) { importListModel.addElement(ii); } }
private void calculatePossibleImports() { GetImportsVisitor getter = new GetImportsVisitor(); XMLCatalog library = getOWLEditorKit().getOWLModelManager().getOntologyCatalogManager().getActiveCatalog(); if (library != null) { for (Entry e : library.getEntries()) { e.accept(getter); } } importListModel.clear(); for (ImportInfo ii : getter.getImports()) { importListModel.addElement(ii); } }
private void calculatePossibleImports() { GetImportsVisitor getter = new GetImportsVisitor(); XMLCatalog library = getOWLEditorKit().getOWLModelManager().getOntologyCatalogManager().getActiveCatalog(); if (library != null) { for (Entry e : library.getEntries()) { e.accept(getter); } } importListModel.clear(); for (ImportInfo ii : getter.getImports()) { importListModel.addElement(ii); } }
private void handleEditRepositories() { OntologyCatalogManager catalogManager = getOWLModelManager().getOntologyCatalogManager(); File activeCatalogFile = OntologyCatalogManager.getCatalogFile(catalogManager.getActiveCatalog()); try { OntologyLibraryPanel.showDialog(getOWLEditorKit(), activeCatalogFile); calculatePossibleImports(); } catch (Exception e) { ProtegeApplication.getErrorLog().logError(e); } }
private void handleEditRepositories() { OntologyCatalogManager catalogManager = getOWLModelManager().getOntologyCatalogManager(); File activeCatalogFile = OntologyCatalogManager.getCatalogFile(catalogManager.getActiveCatalog()); try { OntologyLibraryPanel.showDialog(getOWLEditorKit(), activeCatalogFile); calculatePossibleImports(); } catch (Exception e) { ProtegeApplication.getErrorLog().logError(e); } }