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
return flag indicating if annotations were actually deleted from alignment
[jalview.git]
/
src
/
jalview
/
datamodel
/
Alignment.java
diff --git
a/src/jalview/datamodel/Alignment.java
b/src/jalview/datamodel/Alignment.java
index
536ccab
..
cec2abc
100755
(executable)
--- a/
src/jalview/datamodel/Alignment.java
+++ b/
src/jalview/datamodel/Alignment.java
@@
-463,7
+463,7
@@
public class Alignment
/* (non-Javadoc)
* @see jalview.datamodel.AlignmentI#deleteAnnotation(jalview.datamodel.AlignmentAnnotation)
*/
/* (non-Javadoc)
* @see jalview.datamodel.AlignmentI#deleteAnnotation(jalview.datamodel.AlignmentAnnotation)
*/
- public void deleteAnnotation(AlignmentAnnotation aa)
+ public boolean deleteAnnotation(AlignmentAnnotation aa)
{
int aSize = 1;
{
int aSize = 1;
@@
-474,7
+474,7
@@
public class Alignment
if (aSize < 1)
{
if (aSize < 1)
{
- return;
+ return false;
}
AlignmentAnnotation[] temp = new AlignmentAnnotation[aSize - 1];
}
AlignmentAnnotation[] temp = new AlignmentAnnotation[aSize - 1];
@@
-500,6
+500,7
@@
public class Alignment
if(aa.sequenceRef!=null)
aa.sequenceRef.removeAlignmentAnnotation(aa);
}
if(aa.sequenceRef!=null)
aa.sequenceRef.removeAlignmentAnnotation(aa);
}
+ return swap;
}
/**
}
/**