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
develop merge
[jalview.git]
/
src
/
jalview
/
workers
/
AlignCalcWorker.java
diff --git
a/src/jalview/workers/AlignCalcWorker.java
b/src/jalview/workers/AlignCalcWorker.java
index
bca3145
..
48e3604
100644
(file)
--- a/
src/jalview/workers/AlignCalcWorker.java
+++ b/
src/jalview/workers/AlignCalcWorker.java
@@
-46,7
+46,7
@@
public abstract class AlignCalcWorker implements AlignCalcWorkerI
protected AlignmentViewPanel ap;
protected AlignmentViewPanel ap;
- protected List<AlignmentAnnotation> ourAnnots = null;
+ protected List<AlignmentAnnotation> ourAnnots;
public AlignCalcWorker(AlignViewportI alignViewport,
AlignmentViewPanel alignPanel)
public AlignCalcWorker(AlignViewportI alignViewport,
AlignmentViewPanel alignPanel)
@@
-68,17
+68,18
@@
public abstract class AlignCalcWorker implements AlignCalcWorkerI
}
}
+ @Override
public boolean involves(AlignmentAnnotation i)
{
return ourAnnots != null && ourAnnots.contains(i);
}
/**
public boolean involves(AlignmentAnnotation i)
{
return ourAnnots != null && ourAnnots.contains(i);
}
/**
- * permanently remove from the alignment all annotation rows managed by this
+ * Permanently removes from the alignment all annotation rows managed by this
* worker
*/
@Override
* worker
*/
@Override
- public void removeOurAnnotation()
+ public void removeAnnotation()
{
if (ourAnnots != null && alignViewport != null)
{
{
if (ourAnnots != null && alignViewport != null)
{
@@
-90,6
+91,7
@@
public abstract class AlignCalcWorker implements AlignCalcWorkerI
alignment.deleteAnnotation(aa, true);
}
}
alignment.deleteAnnotation(aa, true);
}
}
+ ourAnnots.clear();
}
}
// TODO: allow GUI to query workers associated with annotation to add items to
}
}
// TODO: allow GUI to query workers associated with annotation to add items to