コード例 #1
0
 public CSharpCodeCompletionStrategy(CodeEditor codeEditor)
   : base(codeEditor) {
   codeEditor.InternalAssembliesLoaded += (sender, args) => {
     projectContent = projectContent.AddAssemblyReferences(args.Value);
   };
   codeEditor.InternalAssembliesUnloaded += (sender, args) => {
     projectContent = projectContent.RemoveAssemblyReferences(args.Value);
   };
 }
コード例 #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();
    }
コード例 #3
0
 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();
     }
   });
 }
コード例 #4
0
 public XmlCodeFoldingStrategy(CodeEditor codeEditor) : base(codeEditor) { }
コード例 #5
0
 protected CodeFoldingStrategy(CodeEditor codeEditor) {
   this.codeEditor = codeEditor;
   foldingManager = FoldingManager.Install(codeEditor.TextEditor.TextArea);
 }
 public MethodDefinitionReadOnlySectionProvider(CodeEditor codeEditor) {
   this.codeEditor = codeEditor;
 }
コード例 #7
0
 public CSharpCodeFoldingStrategy(CodeEditor codeEditor) : base(codeEditor) { }
コード例 #8
0
 public MethodDefinitionReadOnlySectionProvider(CodeEditor codeEditor)
 {
     this.codeEditor = codeEditor;
 }
コード例 #9
0
 protected CodeFoldingStrategy(CodeEditor codeEditor)
 {
     this.codeEditor = codeEditor;
     foldingManager  = FoldingManager.Install(codeEditor.TextEditor.TextArea);
 }