public void ViewResolution(Resolution resolution) { this.currentResolution = resolution; this.title.Text = resolution.FailedRule.Description; /*this.Html = @"<HTML><BODY ID='bodyID' CLASS='dtBODY'> <DIV ID='nstext'> <DL>" + stringParserService.Parse(resolution.FailedRule.Description) + @"</DL> <H4 CLASS='dtH4'>" + stringParserService.Parse("${res:MonoDevelop.AssemblyAnalyser.ResultDetailsView.DescriptionLabel}") + @"</H4> <DL>" + stringParserService.Parse(resolution.FailedRule.Details) + @"</DL> <H4 CLASS='dtH4'>" + stringParserService.Parse("${res:MonoDevelop.AssemblyAnalyser.ResultDetailsView.ResolutionLabel}") + @"</H4> <DL>" + stringParserService.Parse(resolution.Text, resolution.Variables) + @"</DL> " + (CanGoto(resolution) ? stringParserService.Parse("<A HREF=\"help://gotocause\">${res:MonoDevelop.AssemblyAnalyser.ResultDetailsView.JumpToSourceCodeLink}</A>") : "") + @" </DIV></BODY></HTML>"; */ }
bool CanGoto(Resolution res) { Console.WriteLine ("CanGoto"); return false; /* IParserService parserService = (IParserService) ServiceManager.GetService (typeof (IParserService)); Position position = parserService.GetPosition (res.Item.Replace ('+', '.')); return position != null && position.Cu != null; */ }