git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5be729
)
JAL-2068 small refactor to reuse shared method
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 19 Jul 2016 17:31:02 +0000
(18:31 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 19 Jul 2016 17:31:02 +0000
(18:31 +0100)
src/jalview/workers/AnnotationWorker.java
patch
|
blob
|
history
diff --git
a/src/jalview/workers/AnnotationWorker.java
b/src/jalview/workers/AnnotationWorker.java
index
efe707a
..
65603d6
100644
(file)
--- a/
src/jalview/workers/AnnotationWorker.java
+++ b/
src/jalview/workers/AnnotationWorker.java
@@
-79,7
+79,7
@@
class AnnotationWorker extends AlignCalcWorker
return;
}
- removeAnnotations();
+ removeAnnotation();
AlignmentI alignment = alignViewport.getAlignment();
if (alignment != null)
{
@@
-114,19
+114,6
@@
class AnnotationWorker extends AlignCalcWorker
ap.adjustAnnotationHeight();
ap.paintAlignment(true);
}
-
- }
-
- /**
- * Remove all our annotations before re-calculating them
- */
- void removeAnnotations()
- {
- for (AlignmentAnnotation ann : ourAnnots)
- {
- alignViewport.getAlignment().deleteAnnotation(ann);
- }
- ourAnnots.clear();
}
@Override