public abstract class SearchScopeDefinition
extends java.lang.Object
| Constructor | Description |
|---|---|
SearchScopeDefinition() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l) |
Registers a listener listening for changes of applicability.
|
abstract void |
clean() |
This method is called when this search scope definition is no longer
needed.
|
java.lang.String |
getAdditionalInfo() |
Returns an additional information about this search scope.
|
abstract java.lang.String |
getDisplayName() |
Returns human-readable, localized name of this search scope.
|
javax.swing.Icon |
getIcon() |
Get icon to show in the combo box.
|
abstract int |
getPriority() |
Get priority of this search scope.
|
abstract SearchInfo |
getSearchInfo() |
Returns object defining the actual search scope, i.e.
|
abstract java.lang.String |
getTypeId() |
Identifies type of search scope.
|
abstract boolean |
isApplicable() |
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.
|
protected void |
notifyListeners() |
This method should be called whenever the state of current search scope
changes.
|
void |
removeChangeListener(javax.swing.event.ChangeListener l) |
Unregisters a listener listening for changes of applicability.
|
void |
selected() |
This method is called when the search scope is selected in the UI.
|
java.lang.String |
toString() |
@NonNull public abstract java.lang.String getTypeId()
@NonNull public abstract java.lang.String getDisplayName()
@CheckForNull public java.lang.String getAdditionalInfo()
null.null if no additional information is availablepublic abstract boolean isApplicable()
true if this search scope is applicable,
false otherwisepublic final void addChangeListener(@NonNull
javax.swing.event.ChangeListener l)
SearchScope changes.l - listener to be registeredisApplicable()public final void removeChangeListener(@NonNull
javax.swing.event.ChangeListener l)
null,
this method has no effect.l - listener to be unregisteredaddChangeListener(javax.swing.event.ChangeListener),
isApplicable()protected final void notifyListeners()
@NonNull public abstract SearchInfo getSearchInfo()
FileObjects to be searched.SearchInfo defining the search scopepublic java.lang.String toString()
toString in class java.lang.Objectpublic abstract int getPriority()
public abstract void clean()
public void selected()
@CheckForNull public javax.swing.Icon getIcon()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.