820821822823824825826827828829
if (charts.length > 0) result.addSeparator(); for (int i = 0; i < charts.length; i++) { result.add(new JCheckBoxMenuItem(new ToggleChartAction(charts[i], getViewManager()))); } return result; }