Exemple #1
0
        private void FigureOutGlobalsAndAutoComplete()
        {
            var factory = new FilterUIOptionsFactory();
            var options = factory.Create(_extractionFilter);

            var autoCompleteFactory = new AutoCompleteProviderFactory(Activator);

            _autoCompleteProvider = autoCompleteFactory.Create(_extractionFilter.GetQuerySyntaxHelper());

            foreach (var t in options.GetTableInfos())
            {
                _autoCompleteProvider.Add(t);
            }

            foreach (var c in options.GetIColumnsInFilterScope())
            {
                _autoCompleteProvider.Add(c);
            }

            GlobalFilterParameters = options.GetGlobalParametersInFilterScope();

            foreach (ISqlParameter parameter in GlobalFilterParameters)
            {
                _autoCompleteProvider.Add(parameter);
            }

            _autoCompleteProvider.RegisterForEvents(QueryEditor);
        }
Exemple #2
0
 public void AdjustAutocomplete(AutoCompleteProvider autoComplete)
 {
     if (AggregateConfiguration != null)
     {
         autoComplete.Add(AggregateConfiguration);
     }
 }
Exemple #3
0
        public void AdjustAutocomplete(AutoCompleteProvider autoComplete)
        {
            if (Cohort == null)
            {
                return;
            }

            var ect   = Cohort.ExternalCohortTable;
            var table = ect.Discover().ExpectTable(ect.TableName);

            autoComplete.Add(table);
        }
Exemple #4
0
        private void SetupAutocomplete()
        {
            //if there's an old one dispose it
            if (_autoComplete == null)
            {
                _autoComplete = new AutoCompleteProviderFactory(Activator).Create(_processTask.LoadMetadata.GetQuerySyntaxHelper());
            }
            else
            {
                _autoComplete.Clear();
            }

            foreach (var table in _processTask.LoadMetadata.GetDistinctTableInfoList(false))
            {
                _autoComplete.Add(table, _processTask.LoadStage);
            }

            _autoComplete.RegisterForEvents(_scintilla);
        }
 public void AdjustAutocomplete(AutoCompleteProvider autoComplete)
 {
     autoComplete.Add(_table);
 }
 public void AdjustAutocomplete(AutoCompleteProvider autoComplete)
 {
     autoComplete.Add(TableInfo);
 }
 public void AdjustAutocomplete(AutoCompleteProvider autoComplete)
 {
     autoComplete.Add(ColumnInfo);
 }