示例#1
0
        protected override void OnCreate()
        {
            base.OnCreate();

            m_ConnectionsView = CreateView <ConnectionsView>();
            m_ConnectionsView.editorPrefsKey = GetPrefsKey(() => m_ConnectionsView);

            m_RootPathView = CreateView <RootPathView>();
            m_RootPathView.editorPrefsKey = GetPrefsKey(() => m_RootPathView);

            m_HandlesControl = new GCHandlesControl(window, GetPrefsKey(() => m_HandlesControl), new TreeViewState());
            m_HandlesControl.SetTree(m_HandlesControl.BuildTree(snapshot));
            m_HandlesControl.onSelectionChange += OnListViewSelectionChange;

            m_HandlesSearchField = new HeSearchField(window);
            m_HandlesSearchField.downOrUpArrowKeyPressed += m_HandlesControl.SetFocusAndEnsureSelectedItem;
            m_HandlesControl.findPressed += m_HandlesSearchField.SetFocus;

            m_SplitterHorz = EditorPrefs.GetFloat(GetPrefsKey(() => m_SplitterHorz), m_SplitterHorz);
            m_SplitterVert = EditorPrefs.GetFloat(GetPrefsKey(() => m_SplitterVert), m_SplitterVert);
        }
示例#2
0
 public void Initialize(GCHandlesControl owner, PackedMemorySnapshot snapshot, int gcHandlesArrayIndex)
 {
     m_Owner    = owner;
     m_GCHandle = new RichGCHandle(snapshot, gcHandlesArrayIndex);
 }