git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
95f1e2e
)
JAL-2838 made getAssociatedPanels public
author
kjvdheide
<kjvanderheide@dundee.ac.uk>
Fri, 24 Nov 2017 11:39:37 +0000
(11:39 +0000)
committer
kjvdheide
<kjvanderheide@dundee.ac.uk>
Fri, 24 Nov 2017 11:39:37 +0000
(11:39 +0000)
src/jalview/gui/PaintRefresher.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/PaintRefresher.java
b/src/jalview/gui/PaintRefresher.java
index
ced5544
..
06a2f65
100755
(executable)
--- a/
src/jalview/gui/PaintRefresher.java
+++ b/
src/jalview/gui/PaintRefresher.java
@@
-39,7
+39,7
@@
import java.util.Map;
*/
public class PaintRefresher
{
*/
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
/**
* Add the given component to those registered under the given sequence set
@@
-60,7
+60,7
@@
public class PaintRefresher
}
else
{
}
else
{
- List<Component> vcoms = new ArrayList<Component>();
+ List<Component> vcoms = new ArrayList<>();
vcoms.add(comp);
components.put(seqSetId, vcoms);
}
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<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)
for (Component comp : comps)
{
if (comp instanceof AlignmentPanel)