*/
public void setCurrentSelection(IvyNodeElement root, IvyNodeElement currentSelection) {
for (Iterator iter = highlightedRelationships.keySet().iterator(); iter.hasNext();) {
EntityConnectionData entityConnectionData = (EntityConnectionData) iter.next();
ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(entityConnectionData);
if (style.isRevealOnHighlight()) {
viewer.unReveal(entityConnectionData);
}
}
this.rootNode = root;
this.selected = null;
this.selected = currentSelection;
highlightedRelationships = new HashMap/* <EntityConnectionData, Color> */();
highlightedDependencies = new HashMap/* <IvyNodeElement, Color> */();
rootDirectDependenciesDecorator.calculateHighlighted(root, root, highlightedRelationships,
highlightedDependencies);
conflictDecorator.calculateHighlighted(root, root, highlightedRelationships, highlightedDependencies);
if (this.selected != null || this.pinnedNode != null) {
autoSelectDecorator.calculateHighlighted(root, selected, highlightedRelationships, highlightedDependencies);
}
Object[] connections = viewer.getConnectionElements();
for (Iterator iter = highlightedRelationships.keySet().iterator(); iter.hasNext();) {
Object entityConnectionData = iter.next();
ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(entityConnectionData);
if (style.isRevealOnHighlight()) {
viewer.reveal(entityConnectionData);
}
}
for (int i = 0; i < connections.length; i++) {