JAL-2075 make GroovyConsole a singleton so tests requiring a valid AlignFrame but...
[jalview.git] / src / jalview / gui / AlignFrame.java
index e439696..67152f2 100644 (file)
@@ -922,7 +922,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
             .setSelected(av.getGlobalColourScheme() instanceof jalview.schemes.RNAHelicesColour);
 
     showProducts.setEnabled(canShowProducts());
-    setGroovyEnabled(Desktop.instance.getGroovyConsole() != null);
+    setGroovyEnabled(Desktop.getGroovyConsole() != null);
 
     updateEditMenuBar();
   }