X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FVamsasApplication.java;h=afb6df4a2aa23a6490cb08d56a497bdbb162333e;hb=refs%2Fheads%2Freleases%2FRelease_2_10_0_Branch;hp=4630fd1e9db67edfb3dc685ebb56cb73ac74f749;hpb=17e77c3f2949a0729322b4a8d907f3f34b6a9914;p=jalview.git diff --git a/src/jalview/gui/VamsasApplication.java b/src/jalview/gui/VamsasApplication.java index 4630fd1..afb6df4 100644 --- a/src/jalview/gui/VamsasApplication.java +++ b/src/jalview/gui/VamsasApplication.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9) - * Copyright (C) 2015 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. * @@ -321,6 +321,7 @@ public class VamsasApplication implements SelectionSource, VamsasSource Thread udthread = new Thread(new Runnable() { + @Override public void run() { Cache.log.info("Jalview updating to the Vamsas Session."); @@ -639,6 +640,7 @@ public class VamsasApplication implements SelectionSource, VamsasSource final VamsasApplication client = this; vclient.addDocumentUpdateHandler(new PropertyChangeListener() { + @Override public void propertyChange(PropertyChangeEvent evt) { Cache.log.debug("Dealing with document update event."); @@ -656,6 +658,7 @@ public class VamsasApplication implements SelectionSource, VamsasSource uk.ac.vamsas.client.Events.DOCUMENT_REQUESTTOCLOSE, new PropertyChangeListener() { + @Override public void propertyChange(PropertyChangeEvent evt) { if (client.promptUser) @@ -774,6 +777,7 @@ public class VamsasApplication implements SelectionSource, VamsasSource { String last = null; + @Override public void handleMessage(Message message) { if (vobj2jv == null) @@ -998,6 +1002,7 @@ public class VamsasApplication implements SelectionSource, VamsasSource selecter = new SelectionListener() { + @Override public void selection(SequenceGroup seqsel, ColumnSelection colsel, SelectionSource source) { @@ -1065,11 +1070,10 @@ public class VamsasApplication implements SelectionSource, VamsasSource { // gather selected columns outwith the sequence positions // too - for (Object obj : colsel.getSelected()) + for (Integer ival : colsel.getSelected()) { - int ival = ((Integer) obj).intValue(); Pos p = new Pos(); - p.setI(ival + 1); + p.setI(ival.intValue() + 1); range.addPos(p); } }