import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import java.util.concurrent.CopyOnWriteArrayList;
-import java.util.function.Consumer;
import jalview.analysis.AlignmentAnnotationUtils;
import jalview.api.AlignViewportI;
ala.graphGroup += graphGroup;
var newAnnot = alignViewport.getAlignment()
.updateFromOrCopyAnnotation(ala);
- if (ala.sequenceRef != null)
+ if (newAnnot.sequenceRef != null)
{
- ala.sequenceRef.addAlignmentAnnotation(newAnnot);
+ newAnnot.sequenceRef.addAlignmentAnnotation(newAnnot);
newAnnot.adjustForAlignment();
AlignmentAnnotationUtils.replaceAnnotationOnAlignmentWith(
newAnnot, newAnnot.label, newAnnot.getCalcId());
AlignCalcWorkerAdapter.this,
new AnnotationResult(
annotations,
- result.transferFeatures,
+ result.hasFeatures,
result.featureColours,
result.featureFilters));
}
}
private WorkerListener listener = WorkerListener.NULL_LISTENER;
-
+
public void setWorkerListener(WorkerListener listener)
{
if (listener == null) listener = WorkerListener.NULL_LISTENER;