Exemple #1
0
                public override TooltipInformation CreateTooltipInformation(bool smartWrap)
                {
                    var def    = type.GetDefinition();
                    var result = def != null?MemberCompletionData.CreateTooltipInformation(compilation, file, List.Resolver, ext.TextEditorData, ext.FormattingPolicy, def, smartWrap)  : new TooltipInformation();

                    if (ConflictingTypes != null)
                    {
                        var conflicts = new StringBuilder();
                        var sig       = new SignatureMarkupCreator(List.Resolver, ext.FormattingPolicy.CreateOptions());
                        for (int i = 0; i < ConflictingTypes.Count; i++)
                        {
                            var ct = ConflictingTypes[i];
                            if (i > 0)
                            {
                                conflicts.Append(", ");
                            }
                            if ((i + 1) % 5 == 0)
                            {
                                conflicts.Append(Environment.NewLine + "\t");
                            }
                            conflicts.Append(sig.GetTypeReferenceString(((TypeCompletionData)ct).type));
                        }
                        result.AddCategory("Type Conflicts", conflicts.ToString());
                    }
                    return(result);
                }
Exemple #2
0
 public override TooltipInformation CreateTooltipInformation(bool smartWrap)
 {
     return(MemberCompletionData.CreateTooltipInformation(ext, null, member, smartWrap));
 }
 ICompletionData ICompletionDataFactory.CreateEntityCompletionData(IEntity entity, string text)
 {
     return(new GenericTooltipCompletionData((list, sw) => MemberCompletionData.CreateTooltipInformation(ext, list.Resolver, entity, sw), text, entity.GetStockIcon()));
 }