private void ToolButtonClick(ToolEntry toolEntry) { if (string.IsNullOrEmpty(toolEntry.cmd)) { //TODO TabIndex => To Enum OpenSettings(2); return; } if (CurrentLogWindow != null) { ILogLine line = CurrentLogWindow.GetCurrentLine(); ILogFileInfo info = CurrentLogWindow.GetCurrentFileInfo(); if (line != null && info != null) { ArgParser parser = new ArgParser(toolEntry.args); string argLine = parser.BuildArgs(line, CurrentLogWindow.GetRealLineNum() + 1, info, this); if (argLine != null) { StartTool(toolEntry.cmd, argLine, toolEntry.sysout, toolEntry.columnizerName, toolEntry.workingDir); } } } }