toggleNodeExpansion(Arrays.asList(node));
}
@Override
public void toggleNodeExpansion(List<OperationWrapperNode> nodes) {
NodeExpansionMemento oldState = graph.getNodeExpansionMemento();
for (Object node : nodes) {
if (graph.getLayout().isExpanded(node)) {
graph.getLayout().collapse(node);
} else {
graph.getLayout().expand(node);
}
}
NodeExpansionMemento newState = graph.getNodeExpansionMemento();
fireLayoutChanged(new NodeExpansionEdit(oldState, newState));
}