Skip to content
Snippets Groups Projects
Commit 0ab3f3db authored by tjc's avatar tjc
Browse files

fixes to add note

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@2151 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 8424dfd3
No related branches found
No related tags found
No related merge requests found
......@@ -273,9 +273,9 @@ public class DataViewInternalFrame extends JInternalFrame
if(line.startsWith("/similarity="))
{
if(note == null)
note = new StringBuffer("\n/note=\"Similar to");
note = new StringBuffer("\n/note=\"Similar to ");
else
note.append(", and to");
note.append(", and to ");
StringTokenizer tok = new StringTokenizer(line,";");
String type = tok.nextToken();
......@@ -290,11 +290,18 @@ public class DataViewInternalFrame extends JInternalFrame
// ind1 = id.indexOf(":");
id = id.substring(ind1+1).trim();
note.append(tok.nextToken());
String next = tok.nextToken().trim();
if(next.endsWith("."))
next = next.substring(0,next.length()-1);
note.append(next);
note.append(tok.nextToken().toLowerCase());
note.append(" "+id);
String length = tok.nextToken().trim();
if(!length.startsWith("length"))
note.append(" "+length.toLowerCase());
note.append(" "+id);
while(!length.startsWith("length"))
length = tok.nextToken().trim();
......
......@@ -160,7 +160,8 @@ public class HitInfo
return;
ind1 = ind2;
ind2 = header.indexOf("(",ind1);
ind2 = header.lastIndexOf("(");
if(ind2 > -1)
desc = "";
// desc = header.substring(ind1,ind2).trim();
......@@ -174,6 +175,7 @@ public class HitInfo
else
return;
StringTokenizer tok = new StringTokenizer(header.substring(ind2+1));
try
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment