public void setView(ConfigTreeView view) {
if (nodeController == null) {
nodeController = new TreeNodeController();
}
if (configSource == null) {
configSource = new ScanConfigSource(null);
}
if (!ObjectUtils.sameObject(view, this.view)) {
if (this.view != null) {
nodeController.removeAllReferencesTo(this.view.getConfigTree());
}