protected void RaiseCustomItemsRequested(CustomItemsRequestEventArgs e) { if (CustomItemsRequested != null) { CustomItemsRequested(e); } }
public virtual void FillItems(CustomItemsRequestEventArgs e) { foreach (ModifierSelectionBlock block in ModifierBlocks) { block.FillItems(e); } }
protected void PrepareItemsToShowCore(CustomItemsRequestEventArgs e) { RaiseCustomItemsRequested(e); if (e.ShouldCallFillItems) { FillItems(e); } }
public void FillTypes(CustomItemsRequestEventArgs e) { LanguageService ls = LanguageService.Get(this); ClassOrStructBlock parentClass = ClassNavigator.FindContainingClassOrStruct(this); if (ls != null) { ls.FillTypeItems(parentClass, e.Items); } e.ShouldCallFillItems = false; e.ShowOnlyCustomItems = true; }
void AddItemsFromSchema(CustomItemsRequestEventArgs e) { string path = Schema.GetPath(this); XmlSchemaElement el = Schema.FindPath(path, RootNode.RootSchemaElement); if (el == null) { return; } foreach (string s in Schema.GetPossibleTags(el)) { e.Items.Add(new CreateTagItem(s)); } }
protected override void FillItems(CustomItemsRequestEventArgs e) { LanguageService ls = LanguageService.Get(this); ClassOrStructBlock parentClass = ClassNavigator.FindContainingClassOrStruct(this); if (ls != null && parentClass != null) { IEnumerable <TextPictureInfo> types = ls.GetTypeList(parentClass); foreach (TextPictureInfo t in types) { AddEmptyItem(t.Text, t.Picture, e.Items); } } }
public override void FillItems(CustomItemsRequestEventArgs e) { LanguageService ls = LanguageService.Get(this); ClassOrStructBlock parent = ClassNavigator.FindContainingClassOrStruct(this); if (ls != null && parent != null) { ListSet <TextPictureInfo> result = new ListSet <TextPictureInfo>(); AddItems(e.Items, ItemStrings); ls.FillTypeList(parent, result); foreach (TextPictureInfo s in result) { CompletionListItem item = CreateItem(s.Text); if (item.ShouldShow(this.Completion)) { item.Picture = s.Picture; e.Items.Add(item); } } } }
public override void FillItems(CustomItemsRequestEventArgs e) { LanguageService ls = LanguageService.Get(this); ClassOrStructBlock parent = ClassNavigator.FindContainingClassOrStruct(this); if (ls != null && parent != null) { ListSet<TextPictureInfo> result = new ListSet<TextPictureInfo>(); AddItems(e.Items, ItemStrings); ls.FillTypeList(parent, result); foreach (TextPictureInfo s in result) { CompletionListItem item = CreateItem(s.Text); if (item.ShouldShow(this.Completion)) { item.Picture = s.Picture; e.Items.Add(item); } } } }
public override void FillItems(CustomItemsRequestEventArgs e) { base.FillItems(e); e.ShowOnlyCustomItems = false; }
protected override void FillItems(CustomItemsRequestEventArgs e) { LanguageService.GetCompletion(this, e.Items, this.Context); AddStatementItems(e.Items); e.ShowOnlyCustomItems = true; }
public virtual void FillItems(CustomItemsRequestEventArgs e) { AddItems(e.Items, ItemStrings); }
protected override void FillItems(CustomItemsRequestEventArgs e) { LanguageService.GetCompletion(this, e.Items, this.Context); }
protected virtual void FillItems(CustomItemsRequestEventArgs e) { }
void Completion_CustomItemsRequested(CustomItemsRequestEventArgs e) { AddItemsFromSchema(e); }
public override void FillItems(CustomItemsRequestEventArgs e) { AddItems(e.Items, PossibleModifierList); }