public void delegateTo(HgChangelog.Inspector inspector) {
delegate = inspector;
// let delegate control life cycle, too
if (lifecycleProxy == null) {
super.attachAdapter(Lifecycle.class, lifecycleProxy = new LifecycleProxy(inspector));
} else {
lifecycleProxy.init(inspector);
}
}