From: <kev...@us...> - 2007-01-05 19:48:49
|
Revision: 269 http://svn.sourceforge.net/obo/?rev=269&view=rev Author: kevinschaper Date: 2007-01-05 11:48:49 -0800 (Fri, 05 Jan 2007) Log Message: ----------- added getCompListInformalString method to output [syn: synonymname] or [obs] when necessary Modified Paths: -------------- phenote/trunk/src/java/phenote/gui/field/CompletionTerm.java Modified: phenote/trunk/src/java/phenote/gui/field/CompletionTerm.java =================================================================== --- phenote/trunk/src/java/phenote/gui/field/CompletionTerm.java 2007-01-05 18:40:40 UTC (rev 268) +++ phenote/trunk/src/java/phenote/gui/field/CompletionTerm.java 2007-01-05 19:48:49 UTC (rev 269) @@ -39,6 +39,22 @@ return getCompListDisplayString(); } + + public String getCompListInformalString() { + StringBuffer informal = new StringBuffer(); + + if (isSynMatch()) { + informal.append(" [syn: " + synMatchString + "]"); + } + + if (term.isObsolete()) { + informal.append(" [obs]"); + } + + return informal.toString(); + } + + public String getCompListDisplayString() { StringBuffer display = new StringBuffer(); StringBuffer appends = new StringBuffer(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |