Exemple #1
0
        public NativeXPopupItemProvider(NativeXEditingObserverProvider editingObserverExtension)
        {
            this.EditingObserverExtension = editingObserverExtension;
            this.Snippets = new List <SnippetContent>();
            this.Snippets.Add(new SnippetContent(
                                  new SnippetContent.Snippet("for",
                                                             new SnippetContent.Text("for(variable int "),
                                                             new SnippetContent.EditableItem("VARIABLE", "i"),
                                                             new SnippetContent.Text(" = 0; when("),
                                                             new SnippetContent.EditableItem("VARIABLE"),
                                                             new SnippetContent.Text(" < "),
                                                             new SnippetContent.EditableItem("COUNT", "count"),
                                                             new SnippetContent.Text(") with "),
                                                             new SnippetContent.EditableItem("VARIABLE"),
                                                             new SnippetContent.Text("++;) do\r\n"),

                                                             new SnippetContent.Tab(), new SnippetContent.Text("{\r\n"),
                                                             new SnippetContent.Tab(), new SnippetContent.Text("\t"), new SnippetContent.Stop(), new SnippetContent.Text("\r\n"),
                                                             new SnippetContent.Tab(), new SnippetContent.Text("}")
                                                             )
                                  ));
            this.Snippets.Add(new SnippetContent(
                                  new SnippetContent.Snippet("forr",
                                                             new SnippetContent.Text("for(variable int "),
                                                             new SnippetContent.EditableItem("VARIABLE", "i"),
                                                             new SnippetContent.Text(" = "),
                                                             new SnippetContent.EditableItem("COUNT", "count"),
                                                             new SnippetContent.Text(" - 1; when("),
                                                             new SnippetContent.EditableItem("VARIABLE"),
                                                             new SnippetContent.Text(" >= 0) with "),
                                                             new SnippetContent.EditableItem("VARIABLE"),
                                                             new SnippetContent.Text("--;) do\r\n"),

                                                             new SnippetContent.Tab(), new SnippetContent.Text("{\r\n"),
                                                             new SnippetContent.Tab(), new SnippetContent.Text("\t"), new SnippetContent.Stop(), new SnippetContent.Text("\r\n"),
                                                             new SnippetContent.Tab(), new SnippetContent.Text("}")
                                                             )
                                  ));
        }
 public NativeXTooltipProvider(NativeXEditingObserverProvider editingObserverExtension)
 {
     this.EditingObserverExtension = editingObserverExtension;
 }
Exemple #3
0
 public NativeXContextSensitiveColorizerProvider(NativeXEditingObserverProvider editingObserverExtension)
 {
     this.EditingObserverExtension = editingObserverExtension;
 }
Exemple #4
0
 public NativeXParameterInfoProvider(NativeXEditingObserverProvider editingObserverExtension)
 {
     this.EditingObserverExtension = editingObserverExtension;
 }