IMemento activeAlgs = memento.getChild("activeAlgorithms");
if (activeAlgs != null) {
ArrayList<TextRulerLearnerController> activeControllers = new ArrayList<TextRulerLearnerController>();
for (IMemento c : activeAlgs.getChildren("algorithm")) {
TextRulerLearnerController ctrl = TextRulerController.getControllerForID(c.getID());
if (ctrl != null)
activeControllers.add(ctrl);
}
algListViewer.setCheckedElements(activeControllers.toArray());
}