From: Nomi H. <no...@us...> - 2004-01-31 02:45:57
|
Update of /cvsroot/gmod/apollo/src/java/apollo/dataadapter/organism In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv330/organism Modified Files: FlyNameAdapter.java Log Message: new rule in kludgy getShortName for shortening name Index: FlyNameAdapter.java =================================================================== RCS file: /cvsroot/gmod/apollo/src/java/apollo/dataadapter/organism/FlyNameAdapter.java,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** FlyNameAdapter.java 28 Jan 2004 01:29:25 -0000 1.30 --- FlyNameAdapter.java 29 Jan 2004 22:02:56 -0000 1.31 *************** *** 141,144 **** --- 141,146 ---- else if (name.indexOf(".") > 5) name = name.substring(0, name.indexOf(".")) + "..."; + else if (name.lastIndexOf(":") > 5) + name = name.substring(0, name.lastIndexOf(":")) + "..."; else name = name.substring(0, 10) + "..."; |