public void displayingPanel() { super.displayingPanel(); fillImportList(); }
@Override public Object getBackPanelDescriptor() { if (((OntologyImportWizard) getWizard()).isCustomizeImports()) { return SelectImportLocationPage.ID; } else { return backPanelDescriptor; } }
protected void createUI(JComponent parent) { setInstructions("The system will import the following ontologies. Press Finish " + "to import these ontologies, or Cancel to exit the wizard without importing " + "any ontologies."); importedOntologiesComponent = new JPanel(new BorderLayout()); parent.setLayout(new BorderLayout()); parent.add(importedOntologiesComponent, BorderLayout.NORTH); }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = getWizard(); wizard.clearImports(); ImportInfo parameters = new ImportInfo(); parameters.setPhysicalLocation(filePathPanel.getFile().toURI()); wizard.addImport(parameters); ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
public OntologyImportWizard(Frame owner, OWLEditorKit owlEditorKit) { super(owner); setTitle("Import ontology wizard"); registerWizardPanel(ImportTypePage.ID, new ImportTypePage(owlEditorKit)); registerWizardPanel(LocalFilePage.ID, new LocalFilePage(owlEditorKit)); registerWizardPanel(URLPage.ID, new URLPage(owlEditorKit)); registerWizardPanel(LoadedOntologyPage.ID, new LoadedOntologyPage(owlEditorKit)); registerWizardPanel(AnticipateOntologyIdPage.ID, new AnticipateOntologyIdPage(owlEditorKit)); registerWizardPanel(SelectImportLocationPage.ID, new SelectImportLocationPage(owlEditorKit)); registerWizardPanel(ImportConfirmationPage.ID, new ImportConfirmationPage(owlEditorKit)); setCurrentPanel(ImportTypePage.ID); }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = getWizard(); wizard.setImportsAreFinal(false); wizard.clearImports(); ImportInfo parameters = new ImportInfo(); parameters.setPhysicalLocation(filePathPanel.getFile().toURI()); wizard.addImport(parameters); ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
public OntologyImportWizard(Frame owner, OWLEditorKit owlEditorKit) { super(owner); setTitle("Import ontology wizard"); registerWizardPanel(ImportTypePage.ID, new ImportTypePage(owlEditorKit)); registerWizardPanel(LocalFilePage.ID, new LocalFilePage(owlEditorKit)); registerWizardPanel(URLPage.ID, new URLPage(owlEditorKit)); registerWizardPanel(LoadedOntologyPage.ID, new LoadedOntologyPage(owlEditorKit)); registerWizardPanel(LibraryPage.ID, new LibraryPage(owlEditorKit)); registerWizardPanel(AnticipateOntologyIdPage.ID, new AnticipateOntologyIdPage(owlEditorKit)); registerWizardPanel(SelectImportLocationPage.ID, new SelectImportLocationPage(owlEditorKit)); registerWizardPanel(ImportConfirmationPage.ID, new ImportConfirmationPage(owlEditorKit)); setCurrentPanel(ImportTypePage.ID); }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = getWizard(); wizard.setImportsAreFinal(false); wizard.clearImports(); ImportInfo parameters = new ImportInfo(); parameters.setPhysicalLocation(filePathPanel.getFile().toURI()); wizard.addImport(parameters); ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
@Override public Object getBackPanelDescriptor() { if (((OntologyImportWizard) getWizard()).isCustomizeImports()) { return SelectImportLocationPage.ID; } else { return backPanelDescriptor; } }
public void displayingPanel() { super.displayingPanel(); fillImportList(); }
public OntologyImportWizard(Frame owner, OWLEditorKit owlEditorKit) { super(owner); setTitle("Import ontology wizard"); registerWizardPanel(ImportTypePage.ID, new ImportTypePage(owlEditorKit)); registerWizardPanel(LocalFilePage.ID, new LocalFilePage(owlEditorKit)); registerWizardPanel(URLPage.ID, new URLPage(owlEditorKit)); registerWizardPanel(LoadedOntologyPage.ID, new LoadedOntologyPage(owlEditorKit)); registerWizardPanel(LibraryPage.ID, new LibraryPage(owlEditorKit)); registerWizardPanel(AnticipateOntologyIdPage.ID, new AnticipateOntologyIdPage(owlEditorKit)); registerWizardPanel(SelectImportLocationPage.ID, new SelectImportLocationPage(owlEditorKit)); registerWizardPanel(ImportConfirmationPage.ID, new ImportConfirmationPage(owlEditorKit)); setCurrentPanel(ImportTypePage.ID); }
protected void createUI(JComponent parent) { setInstructions("The system will import the following ontologies. Press Finish " + "to import these ontologies, or Cancel to exit the wizard without importing " + "any ontologies."); importedOntologiesComponent = new JPanel(new BorderLayout()); parent.setLayout(new BorderLayout()); parent.add(importedOntologiesComponent, BorderLayout.NORTH); }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = getWizard(); wizard.setImportsAreFinal(false); wizard.clearImports(); ImportInfo parameters = new ImportInfo(); parameters.setPhysicalLocation(filePathPanel.getFile().toURI()); wizard.addImport(parameters); ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
@Override public Object getBackPanelDescriptor() { if (((OntologyImportWizard) getWizard()).isCustomizeImports()) { return SelectImportLocationPage.ID; } else { return backPanelDescriptor; } }
public void displayingPanel() { super.displayingPanel(); fillImportList(); }
public OntologyImportWizard(Frame owner, OWLEditorKit owlEditorKit) { super(owner); setTitle("Import ontology wizard"); registerWizardPanel(ImportTypePage.ID, new ImportTypePage(owlEditorKit)); registerWizardPanel(LocalFilePage.ID, new LocalFilePage(owlEditorKit)); registerWizardPanel(URLPage.ID, new URLPage(owlEditorKit)); registerWizardPanel(LoadedOntologyPage.ID, new LoadedOntologyPage(owlEditorKit)); registerWizardPanel(LibraryPage.ID, new LibraryPage(owlEditorKit)); registerWizardPanel(AnticipateOntologyIdPage.ID, new AnticipateOntologyIdPage(owlEditorKit)); registerWizardPanel(SelectImportLocationPage.ID, new SelectImportLocationPage(owlEditorKit)); registerWizardPanel(ImportConfirmationPage.ID, new ImportConfirmationPage(owlEditorKit)); setCurrentPanel(ImportTypePage.ID); }
protected void createUI(JComponent parent) { setInstructions("The system will import the following ontologies. Press Finish " + "to import these ontologies, or Cancel to exit the wizard without importing " + "any ontologies."); importedOntologiesComponent = new JPanel(new BorderLayout()); parent.setLayout(new BorderLayout()); parent.add(importedOntologiesComponent, BorderLayout.NORTH); }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = (OntologyImportWizard) getWizard(); wizard.clearImports(); for (int index : importList.getSelectedIndices()) { wizard.addImport((ImportInfo) importListModel.getElementAt(index)); } ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
@Override public Object getBackPanelDescriptor() { if (((OntologyImportWizard) getWizard()).isCustomizeImports()) { return SelectImportLocationPage.ID; } else { return backPanelDescriptor; } }
public void displayingPanel() { super.displayingPanel(); fillImportList(); }