Пример #1
0
        protected override void GetElementCompletions(CompletionDataList list)
        {
            CompletionContext ctx = GetCompletionContext(0);

            if (ctx != null)
            {
                ctx.SetCompletionAction(CompletionAction.ElementStart, null);
                ctx.AddCompletionData(list);
            }
        }
Пример #2
0
        protected override CompletionDataList GetAttributeValueCompletions(IAttributedXObject attributedOb, XAttribute att)
        {
            CompletionDataList list = new CompletionDataList();
            CompletionContext  ctx  = GetCompletionContext(1);

            if (ctx != null)
            {
                ctx.SetCompletionAction(CompletionAction.AttributeValue, att.Name.Name);
                ctx.AddCompletionData(list);
            }
            return(list);
        }
Пример #3
0
        protected override CompletionDataList GetAttributeCompletions(IAttributedXObject attributedOb, Dictionary <string, string> existingAtts)
        {
            CompletionDataList list = new CompletionDataList();
            CompletionContext  ctx  = GetCompletionContext(1);

            if (ctx != null)
            {
                ctx.SetCompletionAction(CompletionAction.AttributeStart, null);
                ctx.AddCompletionData(list);
            }
            return(list);
        }