public MainViewModel(ConfigValues configValues, WorkspaceDirectoryModel workspaceDirectoryModel, TreeViewModel treeViewModel, FilesPatternProvider filesPatternProvider, CommandExecutor commandExecutor, PowershellTreeRestructurer powershellTreeRestructurer) { this.configValues = configValues; this.WorkspaceDirectoryModel = workspaceDirectoryModel; this.TreeViewModel = treeViewModel; this.filesPatternProvider = filesPatternProvider; this.commandExecutor = commandExecutor; this.powershellTreeRestructurer = powershellTreeRestructurer; this.TreeViewModel.PropertyChanged += (s, e) => { if (e.PropertyName == "NumberOfFiles") { this.OnPropertyChanged("TreeItemsResultString"); } }; this.searchRegex = configValues.SearchRegex; this.indexFilesMode = configValues.IndexFilesMode; this.showAllFiles = configValues.ShowAllFiles; this.filesPatternProvider.IncludeAllFiles = this.showAllFiles; this.filesPatternProvider.ExcludePaths = configValues.ExcludePaths; this.filesPatternProvider.IndexFilesMode = configValues.IndexFilesMode; this.powershellTreeRestructurer.ShowRegions = !configValues.SortFunctions; NodeComparerProvider.SortFunctions = configValues.SortFunctions; this.syncWithActiveDocument = configValues.SyncWithActiveDocument; var searchField = (indexFilesMode != IndexingMode.NO_FILES ? FullTextFieldType.CatchAll : FullTextFieldType.Name); this.SearchOptions = new SearchOptions(searchField, string.Empty, this.searchRegex); }
public MainViewModel(ConfigValues configValues, WorkspaceDirectoryModel workspaceDirectoryModel, TreeViewModel treeViewModel, FilesPatternProvider filesPatternProvider, CommandExecutor commandExecutor) { this.configValues = configValues; this.WorkspaceDirectoryModel = workspaceDirectoryModel; this.TreeViewModel = treeViewModel; this.filesPatternProvider = filesPatternProvider; this.commandExecutor = commandExecutor; this.TreeViewModel.PropertyChanged += (s, e) => { if (e.PropertyName == "NumberOfFiles") { this.OnPropertyChanged("TreeItemsResultString"); } }; this.searchRegex = configValues.SearchRegex; this.searchInFiles = configValues.SearchInFiles; this.showAllFiles = configValues.ShowAllFiles; this.filesPatternProvider.IncludeAllFiles = this.showAllFiles; this.filesPatternProvider.ExcludePaths = configValues.ExcludePaths; this.syncWithActiveDocument = configValues.SyncWithActiveDocument; var searchField = (this.searchInFiles ? FullTextFieldType.CatchAll : FullTextFieldType.Name); this.SearchOptions = new SearchOptions(searchField, string.Empty, this.searchRegex); }
public BackgroundIndexerParams(DocumentHierarchyFactory documentHierarchyFactory, string rootDirectory, IEnumerable <string> pathsChanged, FilesPatternProvider filesPatternProvider) { this.DocumentHierarchyFactory = documentHierarchyFactory; this.RootDirectory = rootDirectory; this.PathsChanged = pathsChanged; this.FilesPatternProvider = filesPatternProvider; }
public ExcludeOrIncludeItemCommand(MainViewModel mainViewModel, TreeViewModel treeViewModel, FilesPatternProvider filesPatternProvider, ConfigValues configValues, ReindexSearchTreeCommand reindexSearchTreeCommand) { this.mainViewModel = mainViewModel; this.treeViewModel = treeViewModel; this.filesPatternProvider = filesPatternProvider; this.configValues = configValues; this.reindexSearchTreeCommand = reindexSearchTreeCommand; }
public DeleteItemCommand(TreeViewModel treeViewModel, MessageBoxHelper messageBoxHelper, IseIntegrator iseIntegrator, FilesPatternProvider filesPatternProvider, FileSystemOperationsService fileSystemOperationsService, UnsavedFileChecker unsavedFileChecker) { this.treeViewModel = treeViewModel; this.messageBoxHelper = messageBoxHelper; this.iseIntegrator = iseIntegrator; this.filesPatternProvider = filesPatternProvider; this.fileSystemOperationsService = fileSystemOperationsService; this.unsavedFileChecker = unsavedFileChecker; }
public MoveItemCommand(TreeViewModel treeViewModel, MessageBoxHelper messageBoxHelper, WorkspaceDirectoryModel workspaceDirectoryModel, FilesPatternProvider filesPatternProvider, FileSystemOperationsService fileSystemOperationsService, IseIntegrator iseIntegrator, UnsavedFileChecker unsavedFileEnforcer) { this.treeViewModel = treeViewModel; this.messageBoxHelper = messageBoxHelper; this.workspaceDirectoryModel = workspaceDirectoryModel; this.filesPatternProvider = filesPatternProvider; this.fileSystemOperationsService = fileSystemOperationsService; this.iseIntegrator = iseIntegrator; this.unsavedFileEnforcer = unsavedFileEnforcer; }
public ReindexSearchTreeCommand(MainViewModel mainViewModel, DocumentHierarchyFactory documentHierarchyFactory, WorkspaceDirectoryModel workspaceDirectoryModel, ClearTreeViewCommand clearTreeViewCommand, RunSearchCommand runSearchCommand, FilesPatternProvider filesPatternProvider, SyncWithActiveDocumentCommand syncWithActiveDocumentCommand) { this.mainViewModel = mainViewModel; this.documentHierarchyFactory = documentHierarchyFactory; this.workspaceDirectoryModel = workspaceDirectoryModel; this.clearTreeViewCommand = clearTreeViewCommand; this.runSearchCommand = runSearchCommand; this.filesPatternProvider = filesPatternProvider; this.syncWithActiveDocumentCommand = syncWithActiveDocumentCommand; this.backgroundIndexers = new List <BackgroundIndexer>(); }
public EndEditingTreeItemCommand(MainViewModel mainViewModel, TreeViewModel treeViewModel, FilesPatternProvider filesPatternProvider, IseIntegrator iseIntegrator, FileSystemOperationsService fileSystemOperationsService, MessageBoxHelper messageBoxHelper, DocumentHierarchyFactory documentHierarchyFactory) { this.mainViewModel = mainViewModel; this.treeViewModel = treeViewModel; this.filesPatternProvider = filesPatternProvider; this.iseIntegrator = iseIntegrator; this.fileSystemOperationsService = fileSystemOperationsService; this.messageBoxHelper = messageBoxHelper; this.documentHierarchyFactory = documentHierarchyFactory; }
public TreeViewModel(FileSystemChangeWatcher fileSystemChangeWatcher, DocumentHierarchyFactory documentHierarchyFactory, FilesPatternProvider filesPatternProvider) { this.FileSystemChangeWatcher = fileSystemChangeWatcher; this.DocumentHierarchyFactory = documentHierarchyFactory; this.FilesPatternProvider = filesPatternProvider; this.ItemsMap = new Dictionary <string, TreeViewEntryItemModel>(); }
public OpenBuiltinContextMenuCommand(ProjectExplorerWindow projectExplorerWindow, FilesPatternProvider filesPatternProvider, IseIntegrator iseIntegrator) { this.projectExplorerWindow = projectExplorerWindow; this.filesPatternProvider = filesPatternProvider; this.iseIntegrator = iseIntegrator; }