Class TagSearchProvider
java.lang.Object
com.inductiveautomation.ignition.designer.findreplace.AbstractSearchProvider
com.inductiveautomation.ignition.designer.tags.search.TagSearchProvider
- All Implemented Interfaces:
SearchProvider
Performs a gateway-side Tag search
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.inductiveautomation.ignition.designer.findreplace.SearchProvider
SearchProvider.SelectedObjectsHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAsyncReplaceListener
(AsyncReplaceListener listener) Add a listener that will be notified when a replace operation that happens asynchronously has completed.Returns a list of "categories", or sub-selectable units, supported by this search provider.protected DesignerContext
getExecutor
(SearchObjectPredicate predicate) getId()
Returns an ID for this search provider.getName()
Returns the name of the search provider, which will be used in the gateway and a UI to uniquely identify the provider.Returns a key that will be used withBundleUtil
to get various descriptions of the selectable objects.boolean
Whether or not the set of objects searched by this provider is selectable- for examples, which groups or windows are to be searched.protected void
void
Called when the search dialog box is closed, so that the search provider can release any cached resourcesretrieveSearchableObjects
(Collection<Object> categories, List<Object> searchObjects, TaskProgressListener progress) The entire search is gateway-side, so we don't do anything here.protected void
runTagEdit
(TaskProgressListener progress) selectedObjectsToString
(List<Object> selectedObjects) Formats the list of selected objects as a brief string.void
Instructs the SearchProvider to show a dialog in order to select the objects to search.Methods inherited from class com.inductiveautomation.ignition.designer.findreplace.AbstractSearchProvider
toString
-
Field Details
-
PROVIDER_NAME
-
ID
- See Also:
-
TAG_ICON
-
-
Constructor Details
-
TagSearchProvider
-
-
Method Details
-
getCategories
Description copied from interface:SearchProvider
Returns a list of "categories", or sub-selectable units, supported by this search provider. The actual objects will be passed back in to retrieveSearchableObjects when the search is executed. -
getContext
-
getName
Description copied from interface:SearchProvider
Returns the name of the search provider, which will be used in the gateway and a UI to uniquely identify the provider. It is expected to be in the current session's language. -
getId
Description copied from interface:SearchProvider
Returns an ID for this search provider. Should be globally unique (e.g. a module ID) and static regardless of locale. -
getSelectableObjectBaseKey
Description copied from class:AbstractSearchProvider
Returns a key that will be used withBundleUtil
to get various descriptions of the selectable objects. It is expected that the following keys exist:
'{Key}.One' - "%d object"
'{Key}.Many' - "%d objects"
'{Key}.Default' - what will be searched if no objects are selected. For example, "All groups" or "Default provider"- Specified by:
getSelectableObjectBaseKey
in classAbstractSearchProvider
- Returns:
- a
BundleUtil
key corresponding to a description for a selectable object.
-
hasSelectableObjects
public boolean hasSelectableObjects()Description copied from interface:SearchProvider
Whether or not the set of objects searched by this provider is selectable- for examples, which groups or windows are to be searched. -
selectObjects
Description copied from interface:SearchProvider
Instructs the SearchProvider to show a dialog in order to select the objects to search. The object are returned through the passed in handler, and will later be passed into executeSearch. -
addAsyncReplaceListener
Description copied from interface:SearchProvider
Add a listener that will be notified when a replace operation that happens asynchronously has completed. -
notifySearchClosed
public void notifySearchClosed()Description copied from interface:SearchProvider
Called when the search dialog box is closed, so that the search provider can release any cached resources- Specified by:
notifySearchClosed
in interfaceSearchProvider
- Overrides:
notifySearchClosed
in classAbstractSearchProvider
-
retrieveSearchableObjects
public Iterator<SearchObject> retrieveSearchableObjects(Collection<Object> categories, List<Object> searchObjects, TaskProgressListener progress) The entire search is gateway-side, so we don't do anything here.- Parameters:
categories
- indicates the user selection (if applicable) of which categories should be searched.searchObjects
- the user selected objects (if applicable) to be searched.progress
- a progress listener for this provider, which can be updated as the returned Iterator is used. If not supported, the provider should call setIndeterminate(true).
-
getExecutor
-
selectedObjectsToString
Description copied from interface:SearchProvider
Formats the list of selected objects as a brief string.- Specified by:
selectedObjectsToString
in interfaceSearchProvider
- Overrides:
selectedObjectsToString
in classAbstractSearchProvider
-
maybeStartEditTask
protected void maybeStartEditTask() -
runTagEdit
-