UnityEditor.HostView.RegisterSelectedPane C# (CSharp) Method

RegisterSelectedPane() protected method

protected RegisterSelectedPane ( ) : void
return void
        protected void RegisterSelectedPane()
        {
            if (this.m_ActualView != null)
            {
                this.m_ActualView.m_Parent = this;
                if (this.GetPaneMethod("Update") != null)
                {
                    EditorApplication.update = (EditorApplication.CallbackFunction) Delegate.Combine(EditorApplication.update, new EditorApplication.CallbackFunction(this.SendUpdate));
                }
                if (this.GetPaneMethod("ModifierKeysChanged") != null)
                {
                    EditorApplication.modifierKeysChanged = (EditorApplication.CallbackFunction) Delegate.Combine(EditorApplication.modifierKeysChanged, new EditorApplication.CallbackFunction(this.SendModKeysChanged));
                }
                this.m_ActualView.MakeParentsSettingsMatchMe();
                if (this.m_ActualView.m_FadeoutTime != 0f)
                {
                    EditorApplication.update = (EditorApplication.CallbackFunction) Delegate.Combine(EditorApplication.update, new EditorApplication.CallbackFunction(this.m_ActualView.CheckForWindowRepaint));
                }
                try
                {
                    this.Invoke("OnBecameVisible");
                    this.Invoke("OnFocus");
                }
                catch (TargetInvocationException exception)
                {
                    Debug.LogError(exception.InnerException.GetType().Name + ":" + exception.InnerException.Message);
                }
            }
        }