X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FWSWUBlastClient.java;h=abfd1b2c8c80b94442d214d4d38034fdd687fda6;hb=c19d2a91ca05e052e3408bf5852d88eb5d0608f1;hp=df15b5e5a7abb42bc1ea4f2859a41ce64d893171;hpb=b2f9a8d7bce642ff4011bc6d49e02bb0569fbb11;p=jalview.git diff --git a/src/jalview/io/WSWUBlastClient.java b/src/jalview/io/WSWUBlastClient.java index df15b5e..abfd1b2 100755 --- a/src/jalview/io/WSWUBlastClient.java +++ b/src/jalview/io/WSWUBlastClient.java @@ -1,32 +1,48 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2) + * Copyright (C) 2015 The Jalview Authors * * This file is part of Jalview. * * Jalview is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. * * Jalview is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along with Jalview. If not, see . + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . * The Jalview Authors are detailed in the 'AUTHORS' file. */ 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.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 javax.swing.JOptionPane; + +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! @@ -58,10 +74,12 @@ public class WSWUBlastClient { this.ap = ap; this.al = al; - output.setText(MessageManager.getString("label.wswublast_client_credits")); + output.setText(MessageManager + .getString("label.wswublast_client_credits")); - Desktop.addInternalFrame(output, - MessageManager.getString("label.blasting_for_unidentified_sequence"), 800, 300); + Desktop.addInternalFrame(output, MessageManager + .getString("label.blasting_for_unidentified_sequence"), 800, + 300); for (int i = 0; i < ids.size(); i++) { @@ -118,8 +136,7 @@ public class WSWUBlastClient { maxFound = value; buffer.append(" " + id2 + " " + value + "%; "); - suggestedIds.addElement(new Object[] - { seq, id2 }); + suggestedIds.addElement(new Object[] { seq, id2 }); } } } @@ -204,8 +221,9 @@ public class WSWUBlastClient imageIndex++; imageIndex %= 9; output.setFrameIcon(imageIcon[imageIndex]); - output.setTitle("BLASTing for unidentified sequences - " - + jobsRunning + " jobs running."); + output.setTitle(MessageManager.formatMessage( + "label.blasting_for_unidentified_sequence_jobs_running", + new String[] { Integer.valueOf(jobsRunning).toString() })); } catch (Exception ex) { }