void MonoDevelop.DesignerSupport.IOutlinedDocument.ReleaseOutlineWidget()
        {
            if (outlineTreeView == null)
            {
                return;
            }
            var w = (ScrolledWindow)outlineTreeView.Parent;

            w.Destroy();
            if (outlineTreeModelSort != null)
            {
                outlineTreeModelSort.Dispose();
                outlineTreeModelSort = null;
            }
            if (outlineTreeStore != null)
            {
                outlineTreeStore.Dispose();
                outlineTreeStore = null;
            }
            outlineTreeView = null;
            settings        = null;
            foreach (var tw in toolbarWidgets)
            {
                tw.Destroy();
            }
            toolbarWidgets = null;
            comparer       = null;
        }
Example #2
0
 /// <inheritdoc />
 public void Dispose()
 {
     _treeAlignment?.Dispose();
     this.GameContext.Assets?.Dispose();
     _treeModel?.Dispose();
     _treeSorter?.Dispose();
     _treeFilter?.Dispose();
     this.Tree?.Dispose();
 }
Example #3
0
 protected override void OnDestroyed()
 {
     base.OnDestroyed();
     limitationWidget.Dispose();
     // All this crap is needed for the GC to collect this widget and destroy it
     store.Dispose();
     filter.Dispose();
     sort.Dispose();
     iconview.Destroy();
     treeview.Destroy();
     checkCell.Destroy();
     Disposed = true;
 }
Example #4
0
        protected override void OnDestroyed()
        {
            Log.Verbose($"Destroying {GetType ()}");
            ViewModel = null;
            dictionaryStore.Clear();
            dictionaryNestedParent.Clear();
            if (filter != null)
            {
                filter.Dispose();
                filter = null;
            }
            if (sort != null)
            {
                sort.Dispose();
                sort = null;
            }
            base.OnDestroyed();

            Disposed = true;
        }