예제 #1
0
		public static void JumpToSource(UCL_LogStackLine stack) {
			if(!stack.HasValidFilePointer) {
				return;
			}

			JumpToSource (stack.Pointer);
		}
예제 #2
0
        //--------------------------------------
        // Private Methods
        //--------------------------------------



        private void AddStackLine(string line)
        {
            if (line.Length > 1)
            {
                var stackLine = new UCL_LogStackLine(line);
                stackLine.SetLineNumber(Stack.Count);
                Stack.Add(stackLine);
            }
        }
예제 #3
0
		public static void ShowLogStackLineMenu(UCL_LogStackLine stackLine) {

			GenericMenu toolsMenu = new GenericMenu();

			toolsMenu.AddItem (new GUIContent ("Open"), false, () => {
				JumpToSource(stackLine);
			});

			toolsMenu.AddItem (new GUIContent ("Copy"), false, () => {
				EditorGUIUtility.systemCopyBuffer = stackLine.RawData;
				//LoggerWindow.Instance.ShowNotification( new GUIContent("Copied To Clipboard"));
			});

			toolsMenu.AddSeparator ("");

			toolsMenu.AddItem (new GUIContent ("Ignore"), false, () => {
				if(stackLine.Pointer != null) {
                    UCL_Settings.Instance.IgnoreScript(stackLine.Pointer.FileName);
                }
			});
				
			toolsMenu.ShowAsContext();
		}
 public UCL_StackTreeViewItem(int id, UCL_LogStackLine stackLine) : base(id, 0, stackLine.RawData)
 {
     m_stackLine      = stackLine;
     m_displayContent = new GUIContent(stackLine.RawData, stackLine.RawData);
 }