예제 #1
0
        public RHistoryViewModelTest(RComponentsMefCatalogFixture catalog, ContainerHostMethodFixture containerHost) {
            _containerHost = containerHost;
            _exportProvider = catalog.CreateExportProvider();
            _history = _exportProvider.GetExportedValue<IRInteractiveWorkflowProvider>().GetOrCreate().History;

            var containerFactory = _exportProvider.GetExportedValue<IRHistoryVisualComponentContainerFactory>();
            _historyVisualComponent = UIThreadHelper.Instance.Invoke(() => _history.GetOrCreateVisualComponent(containerFactory));
        }
예제 #2
0
        public RHistoryViewModelTest(IServiceContainer services, ContainerHostMethodFixture containerHost)
        {
            _containerHost = containerHost;
            _history       = (IRHistoryVisual)services.GetService <IRInteractiveWorkflowVisualProvider>().GetOrCreate().History;

            var containerFactory = services.GetService <IRHistoryVisualComponentContainerFactory>();

            _historyVisualComponent = UIThreadHelper.Instance.Invoke(() => _history.GetOrCreateVisualComponent(containerFactory));
        }
예제 #3
0
        public RHistoryViewModelTest(IExportProvider exportProvider, ContainerHostMethodFixture containerHost)
        {
            _containerHost = containerHost;
            _history       = exportProvider.GetExportedValue <IRInteractiveWorkflowProvider>().GetOrCreate().History;

            var containerFactory = exportProvider.GetExportedValue <IRHistoryVisualComponentContainerFactory>();

            _historyVisualComponent = UIThreadHelper.Instance.Invoke(() => _history.GetOrCreateVisualComponent(containerFactory));
        }
예제 #4
0
        public RHistoryFiltering(IRHistory history, IRHistoryWindowVisualComponent visualComponent, IRSettings settings, ITextSearchService2 textSearchService) {
            _history = history;
            _history.HistoryChanging += HistoryChanging;
            _history.HistoryChanged += HistoryChanged;

            _settings = settings;
            _textSearchService = textSearchService;
            _textView = visualComponent.TextView;
            _textBuffer = _textView.TextDataModel.DataBuffer;

            IElisionBuffer elisionBuffer;
            _textView.TextViewModel.Properties.TryGetProperty(IntraTextAdornmentBufferKey, out elisionBuffer);
            _elisionBuffer = elisionBuffer;
        }
예제 #5
0
        public RHistoryFiltering(IRHistory history, IRHistoryWindowVisualComponent visualComponent, IRSettings settings, ITextSearchService2 textSearchService)
        {
            _history = history;
            _history.HistoryChanging += HistoryChanging;
            _history.HistoryChanged  += HistoryChanged;

            _settings          = settings;
            _textSearchService = textSearchService;
            _textView          = visualComponent.TextView;
            _textBuffer        = _textView.TextDataModel.DataBuffer;

            IElisionBuffer elisionBuffer;

            _textView.TextViewModel.Properties.TryGetProperty(IntraTextAdornmentBufferKey, out elisionBuffer);
            _elisionBuffer = elisionBuffer;
        }
예제 #6
0
        public IRHistoryFiltering CreateFiltering(IRHistoryWindowVisualComponent visualComponent)
        {
            var history = GetAssociatedRHistory(visualComponent.TextView);

            return(new RHistoryFiltering(history, visualComponent, _settings, _textSearchService));
        }
예제 #7
0
 public IRHistoryFiltering CreateFiltering(IRHistoryWindowVisualComponent visualComponent) {
     var history = GetAssociatedRHistory(visualComponent.TextView);
     return new RHistoryFiltering(history, visualComponent, _settings, _textSearchService);
 }