112113114115116117118119
Page p = workspace.getCurrentPage(block); if (p == null) { throw new RuntimeException("Invariant Violated: child block was located on a null widget"); } //add this block to that page. p.blockDropped(block); } }