@Override public void onFinish() { if (!getFromExistingSources()) { plugin.setOntologyName(ontologyName.getText()); } if (!okToCreateDatabase()) { // ToDo Jennifer or Tania will know the better way... throw new ProtegeIOException("Database already exists! and the user denied overwrite"); } super.onFinish(); }
@Override protected void layoutComponents(Box panel) { if (!getFromExistingSources()) { ontologyName = ComponentFactory.createTextField(FactoryUtils.generateOntologyURIBase()); ontologyName.addFocusListener( new FocusAdapter() { @Override public void focusLost(FocusEvent event) { updateSetPageComplete(); } }); panel.add(new LabeledComponent("Ontology Name", ontologyName)); } super.layoutComponents(panel); }