// check to make sure all node are contained in a diagram
if (operation instanceof ILayoutNodeOperation) {
Iterator nodes = ((ILayoutNodeOperation)operation).getLayoutNodes().listIterator();
if (nodes.hasNext()) {
Node node = ((ILayoutNode)nodes.next()).getNode();
View container = (View)node.eContainer();
if (!(container instanceof Diagram))
return false;
}
}
else {