Package ag.ion.noa4e.internal.search.core

Examples of ag.ion.noa4e.internal.search.core.SearchScope


   *
   * @author Andreas Br�ker
   * @date 12.07.2006
   */
  protected SearchScope buildSearchScope() {
    SearchScope scope = null;
    switch(searchPageContainer.getSelectedScope()) {
      case ISearchPageContainer.SELECTION_SCOPE:
        scope = getSelectedResourcesScope();
        break;
      case ISearchPageContainer.WORKING_SET_SCOPE:
        IWorkingSet[] workingSets = searchPageContainer.getSelectedWorkingSets();
        String description = Messages.OfficeSearchPage_searchScopre_description_workingSets;
        scope = SearchScope.newSearchScope(description, workingSets);
        break;
      default:
          scope = SearchScope.newWorkspaceScope();
   

    scope.addFileNamePatterns(getFileNamePatterns())
    scope.addFileExtensions(getFileExtensions());
    return scope;
  }
View Full Code Here


   *
   * @author Andreas Br�ker
   * @date 12.07.2006
   */
  private ISearchQuery getSearchQuery() {
    SearchScope searchScope = buildSearchScope();
    ISearchDescriptor searchDescriptor = buildSearchDescriptor();
    return new OfficeSearchQuery(getOfficeApplication(), searchScope, searchDescriptor);
  }
View Full Code Here

TOP

Related Classes of ag.ion.noa4e.internal.search.core.SearchScope

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.