void () { if (myDropTarget != null) { DnDManager.getInstance().unregisterTarget(myDropTarget, myTree); myDropTarget = null; } if (myDragSource != null) { DnDManager.getInstance().unregisterSource(myDragSource, myTree); myDragSource = null; } setTreeBuilder(null); myTree = null; myTreeStructure = null; }