- Common ways to obtain ONDEXConcept
private void myMethod () {ONDEXConcept o =
ONDEXRelation r;r.getToConcept()
ONDEXRelation r;r.getFromConcept()
ONDEXGraph graph;graph.getConcept(id)
- Smart code suggestions by Codota
}
@Override public Object getCellEditorValue() { // this is value returned by default editor String newName = super.getCellEditorValue().toString(); if (name == null) { // construct new CN with defaults if (newName.trim().length() > 0) name = concept.createConceptName(newName, false); } else { // existing CN check name update if (!newName.equals(name.getName())) { // delete old one ConceptName old = concept.getConceptName(name.getName()); concept.deleteConceptName(name.getName()); // keep preferred setting and create non empty name if (newName.trim().length() > 0) name = concept.createConceptName(newName, old.isPreferred()); else // clear existing concept name from table name = null; } } // return concept name instead of string return name; }
concept.deleteConceptName(name);
boolean preferred = cn.isPreferred(); c.deleteConceptName(oldname); String name = oldname.replaceAll(regex, replace).trim();