Beispiel #1
0
        public override int CanProcessCommand(GotoCommand command)
        {
            if (command.toManagedObject.isValid)
            {
                return(10);
            }

            return(base.CanProcessCommand(command));
        }
Beispiel #2
0
        public override void RestoreCommand(GotoCommand command)
        {
            if (command.toManagedObject.isValid)
            {
                m_ObjectsControl.Select(command.toManagedObject.packed);
            }

            base.RestoreCommand(command);
        }
Beispiel #3
0
        public override int CanProcessCommand(GotoCommand command)
        {
            if (command.toStaticField.isValid || command.toManagedType.isValid)
            {
                return(10);
            }

            return(base.CanProcessCommand(command));
        }
Beispiel #4
0
        public override int CanProcessCommand(GotoCommand command)
        {
            if (command.toGCHandle.isValid)
            {
                return(10);
            }

            return(base.CanProcessCommand(command));
        }
Beispiel #5
0
        public override void RestoreCommand(GotoCommand command)
        {
            if (command.toNativeObject.isValid)
            {
                m_NativeObjectsControl.Select(command.toNativeObject.packed);
                return;
            }

            base.RestoreCommand(command);
        }
Beispiel #6
0
        public override void RestoreCommand(GotoCommand command)
        {
            if (command.toStaticField.isValid)
            {
                m_StaticFieldsControl.Select(command.toStaticField.classType.packed);
                return;
            }

            if (command.toManagedType.isValid)
            {
                m_StaticFieldsControl.Select(command.toManagedType.packed);
            }
        }
Beispiel #7
0
        public void Add(GotoCommand from, GotoCommand to)
        {
            while (m_Commands.Count > m_Index && m_Index >= 0)
            {
                m_Commands.RemoveAt(m_Commands.Count - 1);
            }

            var e = new Entry();

            e.from = from;
            e.to   = to;
            m_Commands.Add(e);
            m_Index++;
        }
Beispiel #8
0
 public override void RestoreCommand(GotoCommand command)
 {
     m_HandlesControl.Select(command.toGCHandle.packed);
 }
Beispiel #9
0
 protected void Goto(GotoCommand command)
 {
     window.OnGoto(command);
 }
Beispiel #10
0
 public virtual void RestoreCommand(GotoCommand command)
 {
 }
Beispiel #11
0
 public virtual int CanProcessCommand(GotoCommand command)
 {
     return(0);
 }