Exemplo n.º 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;
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 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);
        }
Exemplo n.º 4
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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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;
 }
Exemplo n.º 8
0
 protected ErrorTagger(string errorType, IErrorListHelper errorListHelper)
 {
     _errorType       = errorType;
     _errorListHelper = errorListHelper;
 }
 protected override void OnTestFixtureSetUp()
 {
     _errorListHelper = Substitute.For <IErrorListHelper>();
     base.OnTestFixtureSetUp();
 }
Exemplo n.º 10
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;
 }