public override void ClearSearch()
        {
            _repeatedSearch = false;

            ConfluenceToolWindowNavigator control = (ConfluenceToolWindowNavigator)this.Content;

            _spaceList.Clear();

            foreach (Space space in _spaceListCopy)
            {
                _spaceList.Add(space);
            }
        }
            protected override void OnStartSearch()
            {
                ConfluenceToolWindowNavigator control = (ConfluenceToolWindowNavigator)m_toolWindow.Content;

                control.Dispatcher.Invoke(() =>
                {
                    ConfluenceToolWindowNavigatorViewModel navigator = (ConfluenceToolWindowNavigatorViewModel)control.DataContext;

                    InitializeListsToSearch(navigator);
                });

                List <Space> resultList = new List <Space>();
                bool         matchCase  = false;

                uint resultCount = 0;

                this.ErrorCode = VSConstants.S_OK;

                try
                {
                    string searchString = this.SearchQuery.SearchString;

                    // Determine the results.
                    uint progress = 0;
                    resultCount = SearchForSpaceName(resultList, matchCase, resultCount, searchString);
                }
                catch (Exception e)
                {
                    this.ErrorCode = VSConstants.E_FAIL;
                }
                finally
                {
                    m_toolWindow._repeatedSearch = true;

                    ThreadHelper.Generic.Invoke(() =>
                    {
                        m_toolWindow._spaceList.Clear();

                        foreach (Space space in resultList)
                        {
                            m_toolWindow._spaceList.Add(space);
                        }
                    });

                    this.SearchResults = resultCount;
                }

                // Call the implementation of this method in the base class.
                // This sets the task status to complete and reports task completion.
                base.OnStartSearch();
            }