for (int i = priorizedElementSet
.getPrioritizedElements().size()-1; i>=0;i--) {
PrioritizedElement selectedPrinciple = priorizedElementSet
.getPrioritizedElements().get(i);
Element element = selectedPrinciple.getElement();
GSSElementGraphNode node = (GSSElementGraphNode) getNodeForElement(selectedPrinciple
.getElement());
if (node == null) { //due to changes principle is no longer applicable
if( displayQuestionMessagebox(element.getName() + " is no longer applicable. Deselect Principle?")){
new RemovePrioritizedElementCommand(priorizedElementSet, selectedPrinciple).run();
}
continue;
}
if (!cacheManager.isLeafAppicableElement(element))
node.setIsExpanded();
getCheckboxFigure(node).setIsChecked();
selectedElementsMap.put(element, selectedPrinciple);
}