/**
* @return The result panels of the app if it is opened, or an empty collection otherwise
*/
public Collection<ResultPanel> getResultPanels() {
Collection<ResultPanel> panels = new ArrayList<ResultPanel>();
CytoPanel cytoPanel = getResultsCytoPanel();
int count = cytoPanel.getCytoPanelComponentCount();
for (int i = 0; i < count; i++) {
if (cytoPanel.getComponentAt(i) instanceof ResultPanel)
panels.add((ResultPanel) cytoPanel.getComponentAt(i));
}
return panels;
}