org.netbeans.modules.java.sourceui/1 1.23.1 1

org.netbeans.api.java.source.ui
Interface TypeElementFinder.Customizer

Enclosing class:
TypeElementFinder

public static interface TypeElementFinder.Customizer

Customization of search scope and results


Method Summary
 boolean accept(ElementHandle<TypeElement> typeHandle)
          Filter results directly in dialog.
 Set<ElementHandle<TypeElement>> query(ClasspathInfo classpathInfo, String textForQuery, ClassIndex.NameKind nameKind, Set<ClassIndex.SearchScope> searchScopes)
          Set the scope of the search on particular classpath.
 

Method Detail

query

Set<ElementHandle<TypeElement>> query(ClasspathInfo classpathInfo,
                                      String textForQuery,
                                      ClassIndex.NameKind nameKind,
                                      Set<ClassIndex.SearchScope> searchScopes)
Set the scope of the search on particular classpath. Too expensive queries will affect performance of dialog, consider also using in combination with query(org.netbeans.api.java.source.ClasspathInfo, java.lang.String, org.netbeans.api.java.source.ClassIndex.NameKind, java.util.Set)


accept

boolean accept(ElementHandle<TypeElement> typeHandle)
Filter results directly in dialog. Useful when filtering operation itself is too expensive to perform globally in query method and when ratio of filtered elements is reasonably high. (e.g. visibility query)


org.netbeans.modules.java.sourceui/1 1.23.1 1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.