org.netbeans.api.java.source.ui
Class TypeElementFinder
java.lang.Object
org.netbeans.api.java.source.ui.TypeElementFinder
public final class TypeElementFinder
- extends Object
Support for browsing of the Java types. Opens search dialog for the type name
with possibility to filter possible results.
- Since:
- 1.3
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeElementFinder
public TypeElementFinder()
find
@CheckForNull
public static ElementHandle<TypeElement> find(@NullAllowed
ClasspathInfo cpInfo,
@NullAllowed
TypeElementFinder.Customizer customizer)
- Searches for classes on given classpath using defined restrictions.
- Parameters:
cpInfo - classpath used for search; optional, can be null,
everything available will be searchedcustomizer - possibility to add restrictions to search result;
optional, can be null, no restriction will be applied
- Returns:
- found type or null if dialog was canceled
find
@CheckForNull
public static ElementHandle<TypeElement> find(@NullAllowed
ClasspathInfo cpInfo,
@NullAllowed
String initialText,
@NullAllowed
TypeElementFinder.Customizer customizer)
- Searches for classes on given classpath using defined restrictions.
- Parameters:
cpInfo - classpath used for search; optional, can be null,
everything available will be searchedinitialText - text that should be prefilled in the type name text field, or null to prefill text automatically from the contextcustomizer - possibility to add restrictions to search result;
optional, can be null, no restriction will be applied
- Returns:
- found type or null if dialog was canceled
- Since:
- 1.24