git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-2172 test and code updates for readonly selection list
[jalview.git]
/
src
/
jalview
/
gui
/
VamsasApplication.java
diff --git
a/src/jalview/gui/VamsasApplication.java
b/src/jalview/gui/VamsasApplication.java
index
7588e07
..
afb6df4
100644
(file)
--- a/
src/jalview/gui/VamsasApplication.java
+++ b/
src/jalview/gui/VamsasApplication.java
@@
-321,6
+321,7
@@
public class VamsasApplication implements SelectionSource, VamsasSource
Thread udthread = new Thread(new Runnable()
{
Thread udthread = new Thread(new Runnable()
{
+ @Override
public void run()
{
Cache.log.info("Jalview updating to the Vamsas Session.");
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()
{
final VamsasApplication client = this;
vclient.addDocumentUpdateHandler(new PropertyChangeListener()
{
+ @Override
public void propertyChange(PropertyChangeEvent evt)
{
Cache.log.debug("Dealing with document update event.");
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()
{
uk.ac.vamsas.client.Events.DOCUMENT_REQUESTTOCLOSE,
new PropertyChangeListener()
{
+ @Override
public void propertyChange(PropertyChangeEvent evt)
{
if (client.promptUser)
public void propertyChange(PropertyChangeEvent evt)
{
if (client.promptUser)
@@
-774,6
+777,7
@@
public class VamsasApplication implements SelectionSource, VamsasSource
{
String last = null;
{
String last = null;
+ @Override
public void handleMessage(Message message)
{
if (vobj2jv == null)
public void handleMessage(Message message)
{
if (vobj2jv == null)
@@
-998,6
+1002,7
@@
public class VamsasApplication implements SelectionSource, VamsasSource
selecter = new SelectionListener()
{
selecter = new SelectionListener()
{
+ @Override
public void selection(SequenceGroup seqsel,
ColumnSelection colsel, SelectionSource source)
{
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
{
// 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();
Pos p = new Pos();
- p.setI(ival + 1);
+ p.setI(ival.intValue() + 1);
range.addPos(p);
}
}
range.addPos(p);
}
}