| java.lang.Object org.netbeans.modules.search.SearchScope
All known Subclasses: org.netbeans.modules.search.AbstractSearchScope,
SearchScope | abstract public class SearchScope (Code) | | Interface for obtaining information about scope of a search task.
author: Marian Petras |
addChangeListener | abstract protected void addChangeListener(ChangeListener l)(Code) | | Registers a listener listening for changes of applicability.
Registered listeners should be notified each time this
SearchScope becomes applicable/unapplicable.
Parameters: l - listener to be registered See Also: SearchScope.isApplicable |
getAdditionalInfo | protected String getAdditionalInfo()(Code) | | Returns an additional information about this search scope.
This information may (but may not) be displayed by the scope's
display name, possibly rendered using a different font (style, colour).
The default implementation returns
null .
string with the additional information,or null if no additional information is available |
getContextSensitiveInstance | protected SearchScope getContextSensitiveInstance(Lookup context)(Code) | | Returns a context-sensitive variant of this search scope.
The returned instance may be the same as this instance.
context-sensitive variant of this instance;the default implementation returns this |
getDisplayName | abstract protected String getDisplayName()(Code) | | Returns human-readable, localized name of this search scope.
name of this search scope |
getListenersLock | final protected Object getListenersLock()(Code) | | Returns lock for synchronization of access to set of registered listeners.
lock to be used for synchronization |
getSearchInfo | abstract protected SearchInfo getSearchInfo()(Code) | | Returns object defining the actual search scope, i.e. the iterator over
DataObject s to be searched.
SearchInfo defining the search scope |
getTypeId | abstract public String getTypeId()(Code) | | Identifies type of search scope.
|
isApplicable | abstract protected boolean isApplicable()(Code) | | Is this search scope applicable at the moment?
For example, search scope of all open projects is not applicable if there
is no open project.
true if this search scope is applicable, false otherwise |
removeChangeListener | abstract protected void removeChangeListener(ChangeListener l)(Code) | | Unregisters a listener listening for changes of applicability.
If the passed listener is not currently registered or if the passed
listener is
null , this method has no effect.
Parameters: l - listener to be unregistered See Also: SearchScope.addChangeListener See Also: SearchScope.isApplicable |
|
|