コード例 #1
0
 public AvalonEditCodeEditor(ISharedViewState sharedViewState, IFunctionsDetails functionsDetails)
 {
     _sharedViewState = sharedViewState;
     completionDatas  =
         CompletionDataConverter.ConvertAutocompleteItemsToCompletionDatas(
             AutocompletionData.GetAutocompleteItemsForScripting(functionsDetails));
     InitializeComponent();
     _documents =
         new Dictionary <string, TextDocument>();
     TextArea.TextView.LineTransformers.Add(_offsetColorizer);
 }
コード例 #2
0
 public AvalonEditCodeEditor(ISharedViewState sharedViewState, IAutocompleteProvider autocompleteProvider)
 {
     _sharedViewState      = sharedViewState;
     _autocompleteProvider = autocompleteProvider;
     completionDatas       =
         CompletionDataConverter.ConvertAutocompleteItemsToCompletionDatas(
             _autocompleteProvider.ScriptingAutocompleteItems.ToArray());
     InitializeComponent();
     _documents =
         new Dictionary <string, TextDocument>();
     TextArea.TextView.LineTransformers.Add(_offsetColorizer);
 }