Пример #1
0
 public DocumentManager(RunnableQuery q, Control hostControl)
 {
     this._query = q;
     this._hostControl = hostControl;
     this._document = new ActiproSoftware.SyntaxEditor.Document();
     this._document.get_SpanIndicatorLayers().Add(this._mainErrorLayer = new SpanIndicatorLayer("errors", 0x3e8));
     this._document.get_SpanIndicatorLayers().Add(this._warningsLayer = new SpanIndicatorLayer("warnings", 0x3e8));
     this._document.get_SpanIndicatorLayers().Add(this._executedSelectionLayer = new SpanIndicatorLayer("executedSelection", 0));
     this._document.get_SpanIndicatorLayers().Add(this._uriLayer = new SpanIndicatorLayer("uriLayer", 0));
     this._document.get_SpanIndicatorLayers().Add(this._stackTraceLayer = new SpanIndicatorLayer("stackTrace", 0));
     if (UserOptions.Instance.TabSize.HasValue)
     {
         this._document.set_TabSize(UserOptions.Instance.TabSizeActual);
     }
     if (UserOptions.Instance.ConvertTabsToSpaces)
     {
         this._document.set_AutoConvertTabsToSpaces(true);
     }
     this._typeResolver = new ActiproBridge.TypeResolver(delegate (string name) {
         if (Program.Splash != null)
         {
             Program.Splash.UpdateMessage("Performing one-time build of autocompletion cache: " + name);
         }
     }, MyExtensions.AdditionalRefs);
     this.ConfigureLanguage();
     this.ConfigureResolver();
 }
Пример #2
0
 public DocumentManager(RunnableQuery q, Control hostControl)
 {
     this._query       = q;
     this._hostControl = hostControl;
     this._document    = new ActiproSoftware.SyntaxEditor.Document();
     this._document.get_SpanIndicatorLayers().Add(this._mainErrorLayer         = new SpanIndicatorLayer("errors", 0x3e8));
     this._document.get_SpanIndicatorLayers().Add(this._warningsLayer          = new SpanIndicatorLayer("warnings", 0x3e8));
     this._document.get_SpanIndicatorLayers().Add(this._executedSelectionLayer = new SpanIndicatorLayer("executedSelection", 0));
     this._document.get_SpanIndicatorLayers().Add(this._uriLayer        = new SpanIndicatorLayer("uriLayer", 0));
     this._document.get_SpanIndicatorLayers().Add(this._stackTraceLayer = new SpanIndicatorLayer("stackTrace", 0));
     if (UserOptions.Instance.TabSize.HasValue)
     {
         this._document.set_TabSize(UserOptions.Instance.TabSizeActual);
     }
     if (UserOptions.Instance.ConvertTabsToSpaces)
     {
         this._document.set_AutoConvertTabsToSpaces(true);
     }
     this._typeResolver = new ActiproBridge.TypeResolver(delegate(string name) {
         if (Program.Splash != null)
         {
             Program.Splash.UpdateMessage("Performing one-time build of autocompletion cache: " + name);
         }
     }, MyExtensions.AdditionalRefs);
     this.ConfigureLanguage();
     this.ConfigureResolver();
 }