public static void JumpToSource(UCL_LogStackLine stack) { if(!stack.HasValidFilePointer) { return; } JumpToSource (stack.Pointer); }
//-------------------------------------- // Private Methods //-------------------------------------- private void AddStackLine(string line) { if (line.Length > 1) { var stackLine = new UCL_LogStackLine(line); stackLine.SetLineNumber(Stack.Count); Stack.Add(stackLine); } }
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); }