private void refreshList() {
   OWLModel owlModel = ((ImportWizard) getWizard()).getOWLModel();
   Collection availOntologies = new LinkedHashSet();
   for (Iterator it = owlModel.getRepositoryManager().getProjectRepositories().iterator();
       it.hasNext(); ) {
     Repository rep = (Repository) it.next();
     availOntologies.addAll(new TreeSet(rep.getOntologies()));
   }
   for (Iterator it = owlModel.getRepositoryManager().getGlobalRepositories().iterator();
       it.hasNext(); ) {
     Repository rep = (Repository) it.next();
     availOntologies.addAll(new TreeSet(rep.getOntologies()));
   }
   Collection importedOntologies = owlModel.getAllImports();
   for (Iterator it = availOntologies.iterator(); it.hasNext(); ) {
     URI uri = (URI) it.next();
     if (importedOntologies.contains(uri.toString())) {
       it.remove();
     }
   }
   try {
     availOntologies.remove(new URI(owlModel.getDefaultOWLOntology().getURI()));
   } catch (URISyntaxException e) {
     System.err.print(e.getMessage());
   }
   list.setListData(availOntologies.toArray());
 }
  private void disableProtegeOntology() {
    if (OWLUtil.confirmSaveAndReload(owlModel.getProject())) {
      owlModel.getDefaultOWLOntology().removeImports(ProtegeNames.PROTEGE_OWL_ONTOLOGY);
      OWLUtil.saveAndReloadProject();
    }

    userDatatypesCBox.setSelected(false);
    userDatatypesCBox.setEnabled(false);
  }