void (final TestFrameworkRunningModel model) { setModel(new DefaultTreeModel(new DefaultMutableTreeNode(model.getRoot()))); getSelectionModel().setSelectionMode(model.getProperties().getSelectionMode()); myModel = model; Disposer.register(myModel, myModel.getRoot()); Disposer.register(myModel, new Disposable() { @Override public void dispose() { setModel(null); myModel = null; } }); installHandlers(); setCellRenderer(getRenderer(myModel.getProperties())); putClientProperty(SHRINK_LONG_RENDERER, true); putClientProperty(AnimatedIcon.ANIMATION_IN_RENDERER_ALLOWED, true); }