void () { myEditor.removeHierarchyChangeListener(myHierarchyChangeListener); if (myTreeSelectionListener != null) { myTree.getSelectionModel().removeTreeSelectionListener(myTreeSelectionListener); myTreeSelectionListener = null; } mySelectionWatcher.dispose(); }