X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FWSWUBlastClient.java;h=55e72ebbb2afe3be7def0613f8b4ecbde97f2288;hb=cce9a433443d6407b561679c4c489cdbfca2d12e;hp=871c6d55715fbab4fe1401aa5b4dadc20fc5c467;hpb=aced09c4feeaf3406269442c14e54abeeb4cad81;p=jalview.git diff --git a/src/jalview/io/WSWUBlastClient.java b/src/jalview/io/WSWUBlastClient.java index 871c6d5..55e72eb 100755 --- a/src/jalview/io/WSWUBlastClient.java +++ b/src/jalview/io/WSWUBlastClient.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -20,15 +20,29 @@ */ package jalview.io; -import java.util.*; +import jalview.analysis.AlignSeq; +import jalview.datamodel.AlignmentI; +import jalview.datamodel.DBRefEntry; +import jalview.datamodel.Sequence; +import jalview.gui.AlignmentPanel; +import jalview.gui.CutAndPasteTransfer; +import jalview.gui.Desktop; +import jalview.gui.JvOptionPane; +import jalview.util.MessageManager; -import javax.swing.*; +import java.util.ArrayList; +import java.util.Enumeration; +import java.util.StringTokenizer; +import java.util.Vector; -import jalview.analysis.*; -import jalview.datamodel.*; -import jalview.gui.*; -import jalview.util.MessageManager; -import uk.ac.ebi.www.*; +import javax.swing.ImageIcon; + +import uk.ac.ebi.www.Data; +import uk.ac.ebi.www.InputParams; +import uk.ac.ebi.www.WSFile; +import uk.ac.ebi.www.WSWUBlast; +import uk.ac.ebi.www.WSWUBlastService; +import uk.ac.ebi.www.WSWUBlastServiceLocator; /** * DOCUMENT ME! @@ -122,8 +136,7 @@ public class WSWUBlastClient { maxFound = value; buffer.append(" " + id2 + " " + value + "%; "); - suggestedIds.addElement(new Object[] - { seq, id2 }); + suggestedIds.addElement(new Object[] { seq, id2 }); } } } @@ -137,11 +150,11 @@ public class WSWUBlastClient { // This must be outside the run() body as java 1.5 // will not return any value from the OptionPane to the expired thread. - int reply = JOptionPane.showConfirmDialog(Desktop.desktop, + int reply = JvOptionPane.showConfirmDialog(Desktop.desktop, "Automatically update suggested ids?", - "Auto replace sequence ids", JOptionPane.YES_NO_OPTION); + "Auto replace sequence ids", JvOptionPane.YES_NO_OPTION); - if (reply == JOptionPane.YES_OPTION) + if (reply == JvOptionPane.YES_OPTION) { Enumeration keys = suggestedIds.elements(); while (keys.hasMoreElements()) @@ -163,7 +176,7 @@ public class WSWUBlastClient } } - DBRefEntry[] entries = oldseq.getDBRef(); + DBRefEntry[] entries = oldseq.getDBRefs(); if (entries != null) { oldseq.addDBRef(new jalview.datamodel.DBRefEntry( @@ -198,6 +211,7 @@ public class WSWUBlastClient } } + @Override public void run() { while (jobsRunning > 0) @@ -208,7 +222,9 @@ public class WSWUBlastClient imageIndex++; imageIndex %= 9; output.setFrameIcon(imageIcon[imageIndex]); - output.setTitle(MessageManager.formatMessage("label.blasting_for_unidentified_sequence_jobs_running", new String[]{jobsRunning})); + output.setTitle(MessageManager.formatMessage( + "label.blasting_for_unidentified_sequence_jobs_running", + new String[] { Integer.valueOf(jobsRunning).toString() })); } catch (Exception ex) { } @@ -235,6 +251,7 @@ public class WSWUBlastClient this.sequence = sequence; } + @Override public void run() { StartJob();