void (final SelectionRequest request) { queue(new Update("UserSelection", Update.LOW_PRIORITY) { @Override public void run() { AbstractTreeUi ui = myTreeBuilder.getUi(); if (ui != null) { request.execute(ui); } } @Override public boolean isExpired() { return myTreeBuilder.isDisposed(); } @Override public void setRejected() { request.reject(); } }); }