Beispiel #1
0
        void ResetViews()
        {
            if (m_ActiveView != null)
            {
                m_ActiveView.Hide();
                m_ActiveView = null;
            }

            for (var n = 0; n < m_Views.Count; ++n)
            {
                m_Views[n].EvictHeap();
            }
        }
Beispiel #2
0
        void DestroyViews()
        {
            if (m_ActiveView != null)
            {
                m_ActiveView.Hide();
                m_ActiveView = null;
            }

            for (var n = 0; n < m_Views.Count; ++n)
            {
                m_Views[n].OnDestroy();
            }
            m_Views.Clear();
        }
Beispiel #3
0
        void ActivateView(object userData)
        {
            var view = userData as HeapExplorerView;

            if (m_ActiveView != null)
            {
                m_ActiveView.Hide();
            }

            m_StatusBarString = "";
            m_ActiveView      = view;

            if (m_ActiveView != null)
            {
                m_ActiveView.Show(m_Heap);
            }

            m_Repaint = true;
        }
Beispiel #4
0
        void RestoreView()
        {
            var viewType = EditorPrefs.GetString("HeapExplorerWindow.restoreView", "");

            HeapExplorerView view = null;

            for (int n = 0; n < m_Views.Count; ++n)
            {
                if (m_Views[n].GetType().Name == viewType)
                {
                    view = m_Views[n];
                    break;
                }
            }

            if (view == null)
            {
                view = FindView <OverviewView>();
            }

            ActivateView(view);
        }