Exemple #1
0
 // testing only
 internal OneEFWizard(ConfigFileUtils configFileUtils = null, IVsUtils vsUtils = null, IErrorListHelper errorListHelper = null, ModelGenErrorCache errorCache = null,
                      List <KeyValuePair <string, string> > generatedCode = null)
 {
     _configFileUtils = configFileUtils;
     _generatedCode   = generatedCode ?? new List <KeyValuePair <string, string> >();
     _vsUtils         = vsUtils;
     _errorListHelper = errorListHelper;
     _errorCache      = errorCache;
 }
 // testing only
 internal OneEFWizard(ConfigFileUtils configFileUtils = null, IVsUtils vsUtils = null, IErrorListHelper errorListHelper = null, ModelGenErrorCache errorCache = null, 
     List<KeyValuePair<string, string>> generatedCode = null)
 {
     _configFileUtils = configFileUtils;
     _generatedCode = generatedCode ?? new List<KeyValuePair<string, string>>();
     _vsUtils = vsUtils;
     _errorListHelper = errorListHelper;
     _errorCache = errorCache;
 }
Exemple #3
0
        public SyntaxErrorTagger(ITextView textView, BackgroundParser backgroundParser, IErrorListHelper errorListHelper, IOptionsService optionsService)
            : base(PredefinedErrorTypeNames.SyntaxError, errorListHelper)
        {
            optionsService.OptionsChanged += OnOptionsChanged;
            textView.Closed += (sender, e) => optionsService.OptionsChanged -= OnOptionsChanged;

            _errorListHelper = errorListHelper;
            _optionsService  = optionsService;
            backgroundParser.RegisterSyntaxTreeHandler(BackgroundParserHandlerPriority.Low, this);

            OnOptionsChanged(this, EventArgs.Empty);
        }
        public SyntaxErrorTagger(ITextView textView, BackgroundParser backgroundParser, IErrorListHelper errorListHelper, IOptionsService optionsService)
            : base(PredefinedErrorTypeNames.SyntaxError, errorListHelper)
        {
            optionsService.OptionsChanged += OnOptionsChanged;
            textView.Closed += (sender, e) => optionsService.OptionsChanged -= OnOptionsChanged;

            _errorListHelper = errorListHelper;
            _optionsService = optionsService;
            backgroundParser.RegisterSyntaxTreeHandler(BackgroundParserHandlerPriority.Low, this);

            OnOptionsChanged(this, EventArgs.Empty);
        }
Exemple #5
0
        protected ErrorManager(ITextView textView,
            IOptionsService optionsService, IServiceProvider serviceProvider,
            ITextDocumentFactoryService textDocumentFactoryService)
        {
            _textView = textView;
            _optionsService = optionsService;

            optionsService.OptionsChanged += OnOptionsChanged;

            ITextDocument document;
            if (textDocumentFactoryService.TryGetTextDocument(textView.TextBuffer, out document))
                ErrorListHelper = new ErrorListHelper(serviceProvider, document);

            textView.Closed += OnViewClosed;

            OnOptionsChanged(this, EventArgs.Empty);
        }
Exemple #6
0
        protected ErrorManager(ITextView textView,
                               IOptionsService optionsService, IServiceProvider serviceProvider,
                               ITextDocumentFactoryService textDocumentFactoryService)
        {
            _textView       = textView;
            _optionsService = optionsService;

            optionsService.OptionsChanged += OnOptionsChanged;

            ITextDocument document;

            if (textDocumentFactoryService.TryGetTextDocument(textView.TextBuffer, out document))
            {
                ErrorListHelper = new ErrorListHelper(serviceProvider, document);
            }

            textView.Closed += OnViewClosed;

            OnOptionsChanged(this, EventArgs.Empty);
        }
Exemple #7
0
 /// <summary>
 /// This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.
 /// </summary>
 public OneEFWizard()
 {
     _vsUtils         = new VsUtilsWrapper();
     _errorListHelper = new ErrorListHelperWrapper();
     _errorCache      = PackageManager.Package.ModelGenErrorCache;
 }
Exemple #8
0
 protected ErrorTagger(string errorType, IErrorListHelper errorListHelper)
 {
     _errorType       = errorType;
     _errorListHelper = errorListHelper;
 }
 protected override void OnTestFixtureSetUp()
 {
     _errorListHelper = Substitute.For <IErrorListHelper>();
     base.OnTestFixtureSetUp();
 }
 /// <summary>
 /// This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.
 /// </summary>
 public OneEFWizard()
 {
     _vsUtils = new VsUtilsWrapper();
     _errorListHelper = new ErrorListHelperWrapper();
     _errorCache = PackageManager.Package.ModelGenErrorCache;
 }