Class MessageHandlerScriptSearchObject
java.lang.Object
com.inductiveautomation.ignition.designer.scripteditor.search.AbstractScriptSearchObject
com.inductiveautomation.ignition.designer.scripteditor.search.MessageHandlerScriptSearchObject
- All Implemented Interfaces:
SearchObject
-
Field Summary
Fields inherited from class com.inductiveautomation.ignition.designer.scripteditor.search.AbstractScriptSearchObject
context, resource, workspace
-
Constructor Summary
ConstructorsConstructorDescriptionMessageHandlerScriptSearchObject
(ResourceWorkspace workspace, DesignerContext context, Resource resource) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.inductiveautomation.ignition.common.script.typing.ExtensionFunctionDescriptor
getIcon()
Returns an icon that can be used to identify this type of result.The name of the entity where this result is found.getText()
Gets the text representation of the search result.protected void
Opens the editor for the resource in the current workspace.protected void
Saves the resource in the current workspace.protected void
serializeResource
(ResourceBuilder builder) Serializes the specific resource into the providedResourceBuilder
.void
Updates the search result with the new value- the "replace" in "search & replace".Methods inherited from class com.inductiveautomation.ignition.designer.scripteditor.search.AbstractScriptSearchObject
getName, locate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.designer.findreplace.SearchObject
isMutable
-
Constructor Details
-
MessageHandlerScriptSearchObject
public MessageHandlerScriptSearchObject(ResourceWorkspace workspace, DesignerContext context, Resource resource)
-
-
Method Details
-
getIcon
Description copied from interface:SearchObject
Returns an icon that can be used to identify this type of result. Should be 16x16 or smaller.- Specified by:
getIcon
in interfaceSearchObject
- Overrides:
getIcon
in classAbstractScriptSearchObject
-
getOwnerName
Description copied from interface:SearchObject
The name of the entity where this result is found. Used in the results display to help distinguish similar items. -
getText
Description copied from interface:SearchObject
Gets the text representation of the search result. This is what will be used for the "search". -
setText
Description copied from interface:SearchObject
Updates the search result with the new value- the "replace" in "search & replace".- Throws:
IllegalArgumentException
- If the new text value is not suitable for this search object
-
openEditor
protected void openEditor()Description copied from class:AbstractScriptSearchObject
Opens the editor for the resource in the current workspace. Implementations should handle the specific workspace type.- Specified by:
openEditor
in classAbstractScriptSearchObject
-
saveResource
protected void saveResource()Description copied from class:AbstractScriptSearchObject
Saves the resource in the current workspace. Implementations should manage serialization of the specific resource- Overrides:
saveResource
in classAbstractScriptSearchObject
-
serializeResource
Description copied from class:AbstractScriptSearchObject
Serializes the specific resource into the providedResourceBuilder
. Subclasses should implement this method to apply their resource-specific serialization logic.- Specified by:
serializeResource
in classAbstractScriptSearchObject
- Parameters:
builder
- theResourceBuilder
instance representing the resource to be serialized
-
getDescriptor
protected com.inductiveautomation.ignition.common.script.typing.ExtensionFunctionDescriptor getDescriptor()
-