X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fworkers%2FAlignmentAnnotationFactory.java;fp=src%2Fjalview%2Fworkers%2FAlignmentAnnotationFactory.java;h=f804a19c16ba0c53466db6234bb72c56d2262e87;hb=408b2821c8daf99245bf6358d06760701d90ddd8;hp=ee48c737a0dd548eec598dab188fb4d6178888f4;hpb=f8e603128476ca6e093ea2fc65435d1294978c53;p=jalview.git diff --git a/src/jalview/workers/AlignmentAnnotationFactory.java b/src/jalview/workers/AlignmentAnnotationFactory.java index ee48c73..f804a19 100644 --- a/src/jalview/workers/AlignmentAnnotationFactory.java +++ b/src/jalview/workers/AlignmentAnnotationFactory.java @@ -2,10 +2,10 @@ package jalview.workers; import jalview.api.AlignViewportI; import jalview.api.AlignmentViewPanel; +import jalview.bin.Jalview; import jalview.datamodel.AlignmentAnnotation; import jalview.datamodel.Annotation; import jalview.gui.AlignFrame; -import jalview.gui.Desktop; import java.awt.Color; @@ -32,7 +32,7 @@ public class AlignmentAnnotationFactory { // TODO need an interface for AlignFrame by which to access // its AlignViewportI and AlignmentViewPanel - AlignFrame currentAlignFrame = Desktop.getCurrentAlignFrame(); + AlignFrame currentAlignFrame = Jalview.getCurrentAlignFrame() ; if (currentAlignFrame != null) { newCalculator(currentAlignFrame.getViewport(), currentAlignFrame @@ -69,7 +69,7 @@ public class AlignmentAnnotationFactory { // TODO need an interface for AlignFrame by which to access // its AlignViewportI and AlignmentViewPanel - AlignFrame currentAlignFrame = Desktop.getCurrentAlignFrame(); + AlignFrame currentAlignFrame = Jalview.getCurrentAlignFrame() ; if (currentAlignFrame != null) { newCalculator(currentAlignFrame.getViewport(), currentAlignFrame