@Override public void aboutToHidePanel() { OntologyImportWizard wizard = getWizard(); wizard.setImportsAreFinal(false); wizard.clearImports(); for (Object o : ontologyList.getSelectedValues()){ OWLOntology ontology = (OWLOntology) o; OWLOntologyID id = ontology.getOntologyID(); IRI physicalLocation = getOWLModelManager().getOWLOntologyManager().getOntologyDocumentIRI(ontology); ImportInfo parameter = new ImportInfo(); parameter.setOntologyID(ontology.getOntologyID()); parameter.setPhysicalLocation(physicalLocation.toURI()); parameter.setImportLocation(!id.isAnonymous() ? id.getDefaultDocumentIRI().get() : physicalLocation); wizard.addImport(parameter); } ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = getWizard(); wizard.setImportsAreFinal(false); wizard.clearImports(); for (Object o : ontologyList.getSelectedValues()){ OWLOntology ontology = (OWLOntology) o; OWLOntologyID id = ontology.getOntologyID(); IRI physicalLocation = getOWLModelManager().getOWLOntologyManager().getOntologyDocumentIRI(ontology); ImportInfo parameter = new ImportInfo(); parameter.setOntologyID(ontology.getOntologyID()); parameter.setPhysicalLocation(physicalLocation.toURI()); parameter.setImportLocation(!id.isAnonymous() ? id.getDefaultDocumentIRI().get() : physicalLocation); wizard.addImport(parameter); } ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = (OntologyImportWizard) getWizard(); wizard.clearImports(); for (Object o : ontologyList.getSelectedValues()){ OWLOntology ontology = (OWLOntology) o; OWLOntologyID id = ontology.getOntologyID(); IRI physicalLocation = getOWLModelManager().getOWLOntologyManager().getOntologyDocumentIRI(ontology); ImportInfo parameter = new ImportInfo(); parameter.setOntologyID(ontology.getOntologyID()); parameter.setPhysicalLocation(physicalLocation.toURI()); parameter.setImportLocation(!id.isAnonymous() ? id.getDefaultDocumentIRI() : physicalLocation); wizard.addImport(parameter); } ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = (OntologyImportWizard) getWizard(); wizard.setImportsAreFinal(false); wizard.clearImports(); for (Object o : ontologyList.getSelectedValues()){ OWLOntology ontology = (OWLOntology) o; OWLOntologyID id = ontology.getOntologyID(); IRI physicalLocation = getOWLModelManager().getOWLOntologyManager().getOntologyDocumentIRI(ontology); ImportInfo parameter = new ImportInfo(); parameter.setOntologyID(ontology.getOntologyID()); parameter.setPhysicalLocation(physicalLocation.toURI()); parameter.setImportLocation(!id.isAnonymous() ? id.getDefaultDocumentIRI() : physicalLocation); wizard.addImport(parameter); } ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }