Beispiel #1
0
 public void Initialize(IInfrastructureFactory infrastructureFactory, IDatabaseModel databaseModel)
 {
     _helpProvider           = infrastructureFactory.CreateHelpProvider();
     _codeCompletionProvider = infrastructureFactory.CreateCodeCompletionProvider();
     _navigationService      = infrastructureFactory.CreateNavigationService();
     _colorizingTransformer.SetParser(infrastructureFactory.CreateParser());
     DocumentRepository = new SqlDocumentRepository(infrastructureFactory.CreateParser(), infrastructureFactory.CreateStatementValidator(), databaseModel);
 }
Beispiel #2
0
        public void SetDocumentRepository(SqlDocumentRepository documentRepository)
        {
            if (documentRepository == null)
            {
                return;
            }

            EnsureParserSet();

            lock (_lockObject)
            {
                _statements = documentRepository.Statements;

                _validationModels = documentRepository.ValidationModels;

                ClearNodeIndexes();
            }
        }