JAL-4090 JAL-1551 spotlessApply
[jalview.git] / src / jalview / gui / AnnotationColumnChooser.java
index 0483aa6..f1f78fa 100644 (file)
@@ -96,9 +96,11 @@ public class AnnotationColumnChooser extends AnnotationRowFilter
 
   public AnnotationColumnChooser(AlignViewport av, final AlignmentPanel ap)
   {
-    this(av,ap,null);
+    this(av, ap, null);
   }
-  public AnnotationColumnChooser(AlignViewport av, final AlignmentPanel ap, AlignmentAnnotation selectedAnnotation)
+
+  public AnnotationColumnChooser(AlignViewport av, final AlignmentPanel ap,
+          AlignmentAnnotation selectedAnnotation)
   {
     super(av, ap);
     frame = new JInternalFrame();
@@ -120,7 +122,7 @@ public class AnnotationColumnChooser extends AnnotationRowFilter
     }
     setOldHiddenColumns(av.getAlignment().getHiddenColumns());
     adjusting = true;
-    
+
     setAnnotations(new JComboBox<>(getAnnotationItems(false)));
     populateThresholdComboBox(threshold);
     AnnotationColumnChooser lastChooser = av
@@ -139,14 +141,16 @@ public class AnnotationColumnChooser extends AnnotationRowFilter
       percentThreshold
               .setSelected(lastChooser.percentThreshold.isSelected());
     }
-    if (selectedAnnotation!=null)
+    if (selectedAnnotation != null)
     {
-      try {
+      try
+      {
         setCurrentAnnotation(selectedAnnotation);
-        annotations.setSelectedItem(getAnnotationMenuLabel(selectedAnnotation));
+        annotations.setSelectedItem(
+                getAnnotationMenuLabel(selectedAnnotation));
       } catch (Exception x)
       {
-        Console.error("Couldn't select annotation in column chooser",x);
+        Console.error("Couldn't select annotation in column chooser", x);
       }
     }
 
@@ -869,6 +873,7 @@ public class AnnotationColumnChooser extends AnnotationRowFilter
   public static void displayFor(AlignViewport av, AlignmentPanel ap,
           AlignmentAnnotation alignmentAnnotation)
   {
-    AnnotationColumnChooser colchooser = new AnnotationColumnChooser(av, ap, alignmentAnnotation);    
+    AnnotationColumnChooser colchooser = new AnnotationColumnChooser(av, ap,
+            alignmentAnnotation);
   }
 }