SetSearchFilter() private method

private SetSearchFilter ( string searchFilter, SearchMode mode, bool setAll ) : void
searchFilter string
mode SearchMode
setAll bool
return void
        private static void OnSearchForReferences()
        {
            int    activeInstanceId = Selection.activeInstanceID;
            string str = AssetDatabase.GetAssetPath(activeInstanceId).Substring(7);

            if (str.IndexOf(' ') != -1)
            {
                str = 34.ToString() + str + (object)'"';
            }
            string searchFilter;

            if (AssetDatabase.IsMainAsset(activeInstanceId))
            {
                searchFilter = "ref:" + str;
            }
            else
            {
                searchFilter = "ref:" + (object)activeInstanceId + ":" + str;
            }
            using (List <SearchableEditorWindow> .Enumerator enumerator = SearchableEditorWindow.searchableWindows.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    SearchableEditorWindow current = enumerator.Current;
                    if (current.m_HierarchyType == HierarchyType.GameObjects)
                    {
                        current.SetSearchFilter(searchFilter, SearchableEditorWindow.SearchMode.All, false);
                        current.m_HasSearchFilterFocus = true;
                        current.Repaint();
                    }
                }
            }
        }
 internal virtual void SetSearchFilter(string searchFilter, SearchableEditorWindow.SearchMode mode, bool setAll)
 {
     this.m_SearchMode   = mode;
     this.m_SearchFilter = searchFilter;
     if (setAll)
     {
         using (List <SearchableEditorWindow> .Enumerator enumerator = SearchableEditorWindow.searchableWindows.GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 SearchableEditorWindow current = enumerator.Current;
                 if ((UnityEngine.Object)current != (UnityEngine.Object) this && current.m_HierarchyType == this.m_HierarchyType && current.m_HierarchyType != HierarchyType.Assets)
                 {
                     current.SetSearchFilter(this.m_SearchFilter, this.m_SearchMode, false);
                 }
             }
         }
     }
     this.Repaint();
     EditorApplication.Internal_CallSearchHasChanged();
 }