handleNoSelection();
}
}
private static OperationWrapperNode getOpNode(Object[] selection) {
OperationWrapperNode opNode = null;
for (Object o : selection) {
if (o instanceof OperationWrapperNode) {
if (opNode == null) {
opNode = (OperationWrapperNode) o;
} else if (opNode != o) {
return null;
}
} else if (o instanceof EmailWrapperNode) {
return null;
} else if (o instanceof PipelineActivityNode) {
OperationWrapperNode parent = ((PipelineActivityNode) o).getParent();
if (opNode == null) {
opNode = parent;
} else if (opNode != parent) {
return null;
}