public CSharpCodeCompletionStrategy(CodeEditor codeEditor)
   : base(codeEditor) {
   codeEditor.InternalAssembliesLoaded += (sender, args) => {
     projectContent = projectContent.AddAssemblyReferences(args.Value);
   };
   codeEditor.InternalAssembliesUnloaded += (sender, args) => {
     projectContent = projectContent.RemoveAssemblyReferences(args.Value);
   };
 }
Exemplo n.º 2
0
    protected LanguageFeatures(CodeEditor codeEditor, ICodeFoldingStrategy codeFoldingStrategy, ICodeCompletionStrategy codeCompletionStrategy) {
      this.codeEditor = codeEditor;
      this.codeFoldingStrategy = codeFoldingStrategy;
      this.codeCompletionStrategy = codeCompletionStrategy;

      commandBinding = new CommandBinding(codeEditor.CompletionCommand, CodeCompletionRequestedHandler);
      if (codeFoldingStrategy != null) AddCodeFoldingStrategy();
      if (codeCompletionStrategy != null) AddCodeComplectionStrategy();
    }
 protected CodeCompletionStrategy(CodeEditor codeEditor) {
   this.codeEditor = codeEditor;
   this.codeEditor.TextEditorTextChanged += codeEditor_TextEditorTextChanged;
   parserTimer = new Timer(1000);
   parserTimer.Elapsed += (sender, args) => Task.Run(() => {
     DoParseStep();
     if (codeEditor.IsDisposed && parserTimer.Enabled) {
       parserTimer.Stop();
       parserTimer.Dispose();
     }
   });
 }
 public XmlCodeFoldingStrategy(CodeEditor codeEditor) : base(codeEditor) { }
 protected CodeFoldingStrategy(CodeEditor codeEditor) {
   this.codeEditor = codeEditor;
   foldingManager = FoldingManager.Install(codeEditor.TextEditor.TextArea);
 }
 public MethodDefinitionReadOnlySectionProvider(CodeEditor codeEditor) {
   this.codeEditor = codeEditor;
 }
 public CSharpCodeFoldingStrategy(CodeEditor codeEditor) : base(codeEditor) { }
Exemplo n.º 8
0
 public MethodDefinitionReadOnlySectionProvider(CodeEditor codeEditor)
 {
     this.codeEditor = codeEditor;
 }
Exemplo n.º 9
0
 protected CodeFoldingStrategy(CodeEditor codeEditor)
 {
     this.codeEditor = codeEditor;
     foldingManager  = FoldingManager.Install(codeEditor.TextEditor.TextArea);
 }