public GotoWordBrowserDescriptor( [NotNull] ISolution solution, [NotNull] string pattern, [NotNull] List <IOccurence> occurrences, [CanBeNull] IProgressIndicator indicator = null) : base(solution) { Title.Value = string.Format("Textual occurrences of '{0}'", pattern); DrawElementExtensions = true; myModel = new TreeSectionModel(); using (ReadLockCookie.Create()) { SetResults(occurrences, indicator); } }
public GotoWordBrowserDescriptor( [NotNull] ISolution solution, [NotNull] string pattern, [NotNull] List<IOccurence> occurences, [CanBeNull] IProgressIndicator indicator = null) : base(solution) { Title.Value = string.Format("Textual occurrences of '{0}'", pattern); DrawElementExtensions = true; myModel = new TreeSectionModel(); using (ReadLockCookie.Create()) { // ReSharper disable once DoNotCallOverridableMethodsInConstructor SetResults(occurences, indicator); } }
public LinkedTypesOccurrenceBrowserDescriptor( ISolution solution, ICollection <ITypeElement> typesInContext, ICollection <IOccurrence> linkedTypeOccurrences, IProgressIndicator indicator = null) : base(solution) { _model = new TreeSectionModel(); DrawElementExtensions = true; Title.Value = $"Linked types for {typesInContext.Take(count: 3).Select(x => x.GetClrName().ShortName).Join(", ")}{(typesInContext.Count > 3 ? "..." : string.Empty)}"; using (ReadLockCookie.Create()) { SetResults(linkedTypeOccurrences, indicator); } }