protected void RaiseCustomItemsRequested(CustomItemsRequestEventArgs e)
 {
     if (CustomItemsRequested != null)
     {
         CustomItemsRequested(e);
     }
 }
예제 #2
0
 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);
     }
 }
예제 #4
0
        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;
        }
예제 #5
0
        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));
            }
        }
예제 #6
0
        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);
                }
            }
        }
예제 #7
0
        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);
                    }
                }
            }
        }
예제 #8
0
        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);
                    }
                }
            }
        }
예제 #9
0
 public override void FillItems(CustomItemsRequestEventArgs e)
 {
     base.FillItems(e);
     e.ShowOnlyCustomItems = false;
 }
예제 #10
0
 protected override void FillItems(CustomItemsRequestEventArgs e)
 {
     LanguageService.GetCompletion(this, e.Items, this.Context);
     AddStatementItems(e.Items);
     e.ShowOnlyCustomItems = true;
 }
예제 #11
0
 public virtual void FillItems(CustomItemsRequestEventArgs e)
 {
     AddItems(e.Items, ItemStrings);
 }
예제 #12
0
 protected override void FillItems(CustomItemsRequestEventArgs e)
 {
     LanguageService.GetCompletion(this, e.Items, this.Context);
 }
예제 #13
0
 protected override void FillItems(CustomItemsRequestEventArgs e)
 {
     LanguageService.GetCompletion(this, e.Items, this.Context);
 }
예제 #14
0
 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;
 }
 protected virtual void FillItems(CustomItemsRequestEventArgs e)
 {
 }
 protected void RaiseCustomItemsRequested(CustomItemsRequestEventArgs e)
 {
     if (CustomItemsRequested != null)
     {
         CustomItemsRequested(e);
     }
 }
예제 #17
0
 void Completion_CustomItemsRequested(CustomItemsRequestEventArgs e)
 {
     AddItemsFromSchema(e);
 }
예제 #18
0
 void Completion_CustomItemsRequested(CustomItemsRequestEventArgs e)
 {
     AddItemsFromSchema(e);
 }
예제 #19
0
 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));
     }
 }
예제 #20
0
 public override void FillItems(CustomItemsRequestEventArgs e)
 {
     AddItems(e.Items, PossibleModifierList);
 }
 protected virtual void FillItems(CustomItemsRequestEventArgs e)
 {
 }
 protected void PrepareItemsToShowCore(CustomItemsRequestEventArgs e)
 {
     RaiseCustomItemsRequested(e);
     if (e.ShouldCallFillItems)
     {
         FillItems(e);
     }
 }
예제 #23
0
 public override void FillItems(CustomItemsRequestEventArgs e)
 {
     AddItems(e.Items, PossibleModifierList);
 }
예제 #24
0
 public virtual void FillItems(CustomItemsRequestEventArgs e)
 {
     AddItems(e.Items, ItemStrings);
 }
예제 #25
0
 public virtual void FillItems(CustomItemsRequestEventArgs e)
 {
     foreach (ModifierSelectionBlock block in ModifierBlocks)
     {
         block.FillItems(e);
     }
 }