protected override void UpdateMargin(CompilerResult result) { if (result.IsSuccess) { _compilerResult = result as CssCompilerResult; UpdateResults().DoNotWait("updating TextView property"); SetText(result.Result); } else SetText("/*\r\n\r\nCompilation Error. \r\nSee error list for details\r\n" + string.Join("\r\n", result.Errors.Select(e => e.Message)) + "\r\n\r\n*/"); }
protected override void UpdateMargin(CompilerResult result) { if (result.IsSuccess) { _compilerResult = result as CssCompilerResult; UpdateResults().DoNotWait("updating TextView property"); SetText(result.Result); } else { SetText("/*\r\n\r\nCompilation Error occurred (see error list to navigate to the error location):\r\n" + string.Join("\r\n", result.Errors.Select(e => "Error found" + (e.Line > 0 ? " at line " + e.Line + (e.Column > 0 ? ", column " + e.Column : "") : "") + ":\r\n" + e.FullMessage)) + "\r\n\r\n*/"); } }
protected override void UpdateMargin(CompilerResult result) { if (result.IsSuccess) { _compilerResult = result as CssCompilerResult; UpdateResults().DoNotWait("updating TextView property"); SetText(result.Result); } else { SetText("/*\r\n\r\nCompilation Error. \r\nSee error list for details\r\n" + string.Join("\r\n", result.Errors.Select(e => e.Message)) + "\r\n\r\n*/"); } }
protected override void UpdateMargin(CompilerResult result) { if (result.IsSuccess) { _compilerResult = result as CssCompilerResult; if (SourceTextView.Properties.ContainsProperty("CssCompilerResult")) SourceTextView.Properties.RemoveProperty("CssCompilerResult"); SourceTextView.Properties.AddProperty("CssCompilerResult", _compilerResult); SetText(result.Result); } else SetText("/*\r\n\r\nCompilation Error. \r\nSee error list for details\r\n" + string.Join("\r\n", result.Errors.Select(e => e.Message)) + "\r\n\r\n*/"); }