public void displayingPanel() { updateNextButtonEnabled(); calculatePossibleImports(); }
public void displayingPanel() { updateNextButtonEnabled(); calculatePossibleImports(); }
public void displayingPanel() { updateNextButtonEnabled(); calculatePossibleImports(); }
protected void createUI(JComponent parent) { setInstructions("The list below shows ontologies that are contained in the available ontology libaries. Select the ones you want to import."); parent.setLayout(new BorderLayout()); importListModel = new DefaultListModel(); importList = new JList(importListModel); importList.setCellRenderer(new Renderer()); calculatePossibleImports(); importList.addListSelectionListener(e -> { if (!e.getValueIsAdjusting()) { updateNextButtonEnabled(); } }); JPanel buttonPanel = new JPanel(); buttonPanel.setLayout(new FlowLayout()); JButton addRepository = new JButton("Edit Repositories"); addRepository.addActionListener(arg0 -> { handleEditRepositories(); }); buttonPanel.add(addRepository); parent.add(buttonPanel, BorderLayout.NORTH); parent.add(ComponentFactory.createScrollPane(importList), BorderLayout.CENTER); // no advanced option for this particular type of import }
importList = new JList(importListModel); importList.setCellRenderer(new Renderer()); calculatePossibleImports(); importList.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) {
importList = new JList(importListModel); importList.setCellRenderer(new Renderer()); calculatePossibleImports(); importList.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) {
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 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); } }