formula.remove(ctx);
}
private Reference connectRefs(List ranges, XelContext ctx) {
//connect DAG ref nodes
final Reference orgref = ctx != null ?
(Reference) ctx.getVariableResolver().resolveVariable("zkoss.ss.Ref") : null;
for(final Iterator it = ranges.iterator(); it.hasNext(); ) {
final Range xrng = (Range) it.next();
if (xrng instanceof RangeRef) {
final RangeRef rng = (RangeRef) xrng;
orgref.addPrecedent(rng.getRef());
}
}
final Sheet orgSheet = orgref.getSheet();
if (orgSheet != null) {
for(final Iterator it = ranges.iterator(); it.hasNext(); ) {
final Range xrng = (Range) it.next();
if (xrng instanceof RangeRef) {
final RangeRef rng = (RangeRef) xrng;