Class TextSearchScopeSettings

java.lang.Object
com._1c.g5.v8.dt.search.core.TextSearchScopeSettings

public class TextSearchScopeSettings extends Object
Scope settings for searching

At least one target Project must be added.

Other scopes are considered arbitrary if their collections are empty.

  • Constructor Details

    • TextSearchScopeSettings

      public TextSearchScopeSettings()
  • Method Details

    • getSearchFors

      public Set<SearchFor> getSearchFors()
      Returns the SearchFor setting.
      Returns:
      the SearchFor set.
    • getSearchIns

      public Set<SearchIn> getSearchIns()
      Returns the SearchIn setting.
      Returns:
      the SearchIn set, never IUnorderedGroupHelper.Null
    • getSearchScopes

      public Set<SearchScope> getSearchScopes()
      Returns the SearchScope setting.
      Returns:
      the SearchScope set, never IUnorderedGroupHelper.Null
    • getProjects

      public Set<org.eclipse.core.resources.IProject> getProjects()
      Returns the IProject setting.
      Returns:
      the IProject set, never IUnorderedGroupHelper.Null
    • addSearchFor

      public TextSearchScopeSettings addSearchFor(SearchFor... searchFors)
      Add SearchFors to setting.
      Parameters:
      searchFors - array of SearchFors to add to setting
      Returns:
      this instance of settings, never IUnorderedGroupHelper.Null
    • addSearchFor

      public TextSearchScopeSettings addSearchFor(Collection<SearchFor> searchFors)
      Add SearchFors to setting.
      Parameters:
      searchFors - collection of SearchFors to add to setting
      Returns:
      this instance of settings, never IUnorderedGroupHelper.Null
    • addSearchIn

      public TextSearchScopeSettings addSearchIn(SearchIn... searchIns)
      Add SearchIns to setting.
      Parameters:
      searchIns - array of SearchIns to add to setting
      Returns:
      this instance of settings, never IUnorderedGroupHelper.Null
    • addSearchIn

      public TextSearchScopeSettings addSearchIn(Collection<SearchIn> searchIns)
      Add SearchIns to setting.
      Parameters:
      searchIns - collection of SearchIns to add to setting
      Returns:
      this instance of settings, never IUnorderedGroupHelper.Null
    • addSearchScope

      public TextSearchScopeSettings addSearchScope(SearchScope... searchScopes)
      Add SearchScopes to setting.
      Parameters:
      searchScopes - array of SearchScopes to add to setting
      Returns:
      this instance of settings, never IUnorderedGroupHelper.Null
    • addSearchScope

      public TextSearchScopeSettings addSearchScope(Collection<SearchScope> searchScopes)
      Add SearchScopes to setting.
      Parameters:
      searchScopes - collection of SearchScopes to add to setting
      Returns:
      this instance of settings, never IUnorderedGroupHelper.Null
    • addProjects

      public TextSearchScopeSettings addProjects(org.eclipse.core.resources.IProject... projects)
      Add IProjects to setting.
      Parameters:
      projects - array of IProjects to add to setting
      Returns:
      this instance of settings, never IUnorderedGroupHelper.Null
    • addProjects

      public TextSearchScopeSettings addProjects(Collection<org.eclipse.core.resources.IProject> projects)
      Add IProjects to setting.
      Parameters:
      projects - collection of IProjects to add to setting
      Returns:
      this instance of settings, never IUnorderedGroupHelper.Null
    • addDtProjects

      public TextSearchScopeSettings addDtProjects(Collection<IDtProject> projects)
      Convert IDtProjects to project and add to setting.
      Parameters:
      projects - collection of IDtProjects to add to setting
      Returns:
      this instance of settings, never IUnorderedGroupHelper.Null