private void loadOntology() { String uri = mURITextField.getText().trim(); mInstanceFactory = InstanceFactory.getInstance(uri); mClassListField.setText( Configuration.GUIDELINE_CLASSNAME_IN_OWL + " of " + uri.substring(uri.lastIndexOf("/") + 1)); fillComboBox( mIndividualListComboBox, mInstanceFactory.getIndividualNames(Configuration.GUIDELINE_CLASSNAME_IN_OWL)); }
public void drawGuideline() { if (mIndividualListComboBox.getSelectedItem() != null) { String aClassName = Configuration.GUIDELINE_CLASSNAME_IN_OWL; String anIndividualName = (String) mIndividualListComboBox.getSelectedItem(); Object lObject = mInstanceFactory.createIndividual(aClassName, anIndividualName); if (lObject != null) { if (lObject instanceof DefaultGuideline) { DefaultGuideline guideline = (DefaultGuideline) lObject; String uri = mURITextField.getText().trim(); guidelineMonitoringPanel.drawGuideline(guideline, uri); } } } }