JAL-2838 made getAssociatedPanels public
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Fri, 24 Nov 2017 11:39:37 +0000 (11:39 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Fri, 24 Nov 2017 11:39:37 +0000 (11:39 +0000)
src/jalview/gui/PaintRefresher.java

index ced5544..06a2f65 100755 (executable)
@@ -39,7 +39,7 @@ import java.util.Map;
  */
 public class PaintRefresher
 {
-  static Map<String, List<Component>> components = new HashMap<String, List<Component>>();
+  static Map<String, List<Component>> components = new HashMap<>();
 
   /**
    * Add the given component to those registered under the given sequence set
@@ -60,7 +60,7 @@ public class PaintRefresher
     }
     else
     {
-      List<Component> vcoms = new ArrayList<Component>();
+      List<Component> vcoms = new ArrayList<>();
       vcoms.add(comp);
       components.put(seqSetId, vcoms);
     }
@@ -233,14 +233,14 @@ public class PaintRefresher
     }
   }
 
-  static AlignmentPanel[] getAssociatedPanels(String id)
+  public static AlignmentPanel[] getAssociatedPanels(String id)
   {
     List<Component> comps = components.get(id);
     if (comps == null)
     {
       return new AlignmentPanel[0];
     }
-    List<AlignmentPanel> tmp = new ArrayList<AlignmentPanel>();
+    List<AlignmentPanel> tmp = new ArrayList<>();
     for (Component comp : comps)
     {
       if (comp instanceof AlignmentPanel)