Examples of SearchScope


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

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

   *
   * @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

Examples of com.filenet.api.query.SearchScope

  }

  @Override
  public ISearch getSearch(IObjectStore objectStore)
          throws RepositoryException {
    SearchScope search =
        new SearchScope(((FnObjectStore) objectStore).getObjectStore());

    return new FnSearch(search);
  }
View Full Code Here

Examples of com.intellij.psi.search.SearchScope

  }

  @NotNull
  private static SearchScope notNullizeScope(@NotNull FindUsagesOptions options,
      @NotNull Project project) {
    SearchScope scope = options.searchScope;
    if (scope == null) return ProjectScope.getAllScope(project);
    return scope;
  }
View Full Code Here

Examples of com.intellij.psi.search.SearchScope

    return notNullizeScope(options, project).getDisplayName();
  }

  @NotNull
  private static SearchScope notNullizeScope(@NotNull FindUsagesOptions options, @NotNull Project project) {
    SearchScope scope = options.searchScope;
    if (scope == null) return ProjectScope.getAllScope(project);
    return scope;
  }
View Full Code Here

Examples of com.intellij.psi.search.SearchScope

    final String word = getTheBiggestWordToSearchByIndex(regexp);
    if (StringUtil.isEmptyOrSpaces(word)) {
      return true;
    }

    final SearchScope searchScope = CucumberStepSearchUtil.restrictScopeToGherkinFiles(new Computable<SearchScope>() {
      @Override
      public SearchScope compute() {
        return effectiveSearchScope;
      }
    });
View Full Code Here

Examples of com.intellij.psi.search.SearchScope

*/
public class CucumberStepSearchUtil {
  public static SearchScope restrictScopeToGherkinFiles(final Computable<SearchScope> originalScopeComputation) {
    return ApplicationManager.getApplication().runReadAction(new Computable<SearchScope>() {
      public SearchScope compute() {
        final SearchScope originalScope = originalScopeComputation.compute();
        if (originalScope instanceof GlobalSearchScope) {
          return GlobalSearchScope.getScopeRestrictedByFileTypes((GlobalSearchScope)originalScope,
                                                                 GherkinFileType.INSTANCE);
        }
        return originalScope;
View Full Code Here

Examples of com.intellij.psi.search.SearchScope

  @Override
  public void processQuery(@NotNull ReferencesSearch.SearchParameters queryParameters, @NotNull final Processor<PsiReference> consumer) {
    final PsiElement target = queryParameters.getElementToSearch();
    if (!(target instanceof BnfRule)) return;

    SearchScope scope = queryParameters.getEffectiveSearchScope();
    if (!(scope instanceof LocalSearchScope)) return;

    PsiFile file = target.getContainingFile();
    if (!(file instanceof BnfFile)) return;
View Full Code Here

Examples of com.volantis.mcs.eclipse.ab.search.SearchScope

        // Save the combo history so previous search strings can be retrieved
        historyManager.updateHistory(searchStringCombo.getText());
        historyManager.saveHistory();

        // Get the scope for the search based on the users choice.
        SearchScope scope = new SearchScopeFactory().
                createSearchScope(getContainer(),
                        new FileExtension[]{FileExtension.DEVICE_REPOSITORY});

        // Set up the options for the query based on the users choice.
        DeviceSearchQueryOptions options = new DeviceSearchQueryOptions();
View Full Code Here

Examples of org.apache.directory.api.ldap.model.message.SearchScope

    public void testCursorNextPrevWithReset() throws Exception
    {
        try
        {
            Dn base = new Dn( "dc=example,dc=com" );
            SearchScope scope = SearchScope.SUBTREE;
            ExprNode exprNode = FilterParser.parse( getService().getSchemaManager(), "(objectClass=*)" );
            AliasDerefMode aliasDerefMode = AliasDerefMode.DEREF_ALWAYS;
            Cursor<Entry> cursor = getService().getAdminSession()
                .search( base, scope, exprNode, aliasDerefMode );

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.