@Override public void dispose() { if (myDropTarget != null) { myDndManager.unregisterSource(this); myDndManager.unregisterTarget(myDropTarget, this); myDropTarget = null; myDndManager = null; myDragOwner = null; } }
@Override public void dispose() { if (myDndManager != null) { if (myDropTarget != null) { myDndManager.unregisterTarget(myDropTarget, myTree); myDropTarget = null; } if (myDragSource != null) { myDndManager.unregisterSource(myDragSource, myTree); myDragSource = null; } myDndManager = null; } setTreeBuilder(null); myTree = null; myTreeStructure = null; }