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 ...@@ -273,9 +273,9 @@ public class DataViewInternalFrame extends JInternalFrame
if(line.startsWith("/similarity=")) if(line.startsWith("/similarity="))
{ {
if(note == null) if(note == null)
note = new StringBuffer("\n/note=\"Similar to"); note = new StringBuffer("\n/note=\"Similar to ");
else else
note.append(", and to"); note.append(", and to ");
StringTokenizer tok = new StringTokenizer(line,";"); StringTokenizer tok = new StringTokenizer(line,";");
String type = tok.nextToken(); String type = tok.nextToken();
...@@ -290,11 +290,18 @@ public class DataViewInternalFrame extends JInternalFrame ...@@ -290,11 +290,18 @@ public class DataViewInternalFrame extends JInternalFrame
// ind1 = id.indexOf(":"); // ind1 = id.indexOf(":");
id = id.substring(ind1+1).trim(); 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(tok.nextToken().toLowerCase());
note.append(" "+id);
String length = tok.nextToken().trim(); String length = tok.nextToken().trim();
if(!length.startsWith("length"))
note.append(" "+length.toLowerCase());
note.append(" "+id);
while(!length.startsWith("length")) while(!length.startsWith("length"))
length = tok.nextToken().trim(); length = tok.nextToken().trim();
......
...@@ -160,7 +160,8 @@ public class HitInfo ...@@ -160,7 +160,8 @@ public class HitInfo
return; return;
ind1 = ind2; ind1 = ind2;
ind2 = header.indexOf("(",ind1); ind2 = header.lastIndexOf("(");
if(ind2 > -1) if(ind2 > -1)
desc = ""; desc = "";
// desc = header.substring(ind1,ind2).trim(); // desc = header.substring(ind1,ind2).trim();
...@@ -174,6 +175,7 @@ public class HitInfo ...@@ -174,6 +175,7 @@ public class HitInfo
else else
return; return;
StringTokenizer tok = new StringTokenizer(header.substring(ind2+1)); StringTokenizer tok = new StringTokenizer(header.substring(ind2+1));
try 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