X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2FDBRefFetcher.java;h=fd511dcd4de0f101f4d8d6e4db9353539bd73849;hb=853624fb32058cccc544ae7d13af6ad4b0800b6c;hp=453cd00977940136123e2033ddba5c8df1535428;hpb=02d6aa2077a261d41db77a0158f2b4b779a36398;p=jalview.git diff --git a/src/jalview/ws/DBRefFetcher.java b/src/jalview/ws/DBRefFetcher.java index 453cd00..fd511dc 100644 --- a/src/jalview/ws/DBRefFetcher.java +++ b/src/jalview/ws/DBRefFetcher.java @@ -115,7 +115,8 @@ public class DBRefFetcher implements Runnable */ public DBRefFetcher(SequenceI[] seqs, IProgressIndicator progressIndicatorFrame, - DbSourceProxy[] sources, FeatureSettings featureSettings, boolean isNucleotide) + DbSourceProxy[] sources, FeatureSettings featureSettings, + boolean isNucleotide) { listeners = new ArrayList(); this.progressWindow = progressIndicatorFrame; @@ -340,7 +341,7 @@ public class DBRefFetcher implements Runnable { progressWindow.setProgressBar( MessageManager.getString("status.fetching_db_refs"), - startTime); + startTime); } try { @@ -389,8 +390,8 @@ public class DBRefFetcher implements Runnable // Still queries to make for current seqIndex StringBuffer queryString = new StringBuffer(""); int numq = 0; - int nqSize = (maxqlen > queries.size()) ? queries - .size() : maxqlen; + int nqSize = (maxqlen > queries.size()) ? queries.size() + : maxqlen; while (queries.size() > 0 && numq < nqSize) { @@ -514,8 +515,7 @@ public class DBRefFetcher implements Runnable output.setText(sb.toString()); Desktop.addInternalFrame(output, - MessageManager.getString("label.sequences_updated"), - 600, 300); + MessageManager.getString("label.sequences_updated"), 600, 300); // The above is the dataset, we must now find out the index // of the viewed sequence @@ -551,8 +551,7 @@ public class DBRefFetcher implements Runnable * @param warningMessages * a list of messages to add to */ - boolean transferReferences(Vector sdataset, - String dbSource, + boolean transferReferences(Vector sdataset, String dbSource, AlignmentI retrievedAl, boolean trimDatasetSeqs, List warningMessages) { @@ -573,8 +572,8 @@ public class DBRefFetcher implements Runnable // taking into account all accessionIds and names in the file Vector sequenceMatches = new Vector(); // look for corresponding accession ids - DBRefEntry[] entryRefs = DBRefUtils.selectRefs(retrievedSeq.getDBRefs(), - new String[] { dbSource }); + DBRefEntry[] entryRefs = DBRefUtils.selectRefs( + retrievedSeq.getDBRefs(), new String[] { dbSource }); if (entryRefs == null) { System.err @@ -684,8 +683,8 @@ public class DBRefFetcher implements Runnable */ mp = new Mapping(null, new int[] { sequenceStart + absStart, sequenceStart + absStart + entrySeq.length() - 1 }, new int[] - { retrievedSeq.getStart(), retrievedSeq.getStart() + entrySeq.length() - 1 }, - 1, 1); + { retrievedSeq.getStart(), + retrievedSeq.getStart() + entrySeq.length() - 1 }, 1, 1); updateRefFrame = false; } else @@ -725,7 +724,8 @@ public class DBRefFetcher implements Runnable } System.out.println("Adding dbrefs to " + sequence.getName() - + " from " + dbSource + " sequence : " + retrievedSeq.getName()); + + " from " + dbSource + " sequence : " + + retrievedSeq.getName()); sequence.transferAnnotation(retrievedSeq, mp); absStart += retrievedSeq.getStart();