Class TagTransferHandler.OpcImportTask
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.tags.tree.TagTransferHandler.OpcImportTask
-
- All Implemented Interfaces:
AsyncClientTask
- Enclosing class:
- TagTransferHandler
public static class TagTransferHandler.OpcImportTask extends java.lang.Object implements AsyncClientTask
-
-
Constructor Summary
Constructors Constructor Description OpcImportTask(DesignerContext context, TagPath folderPath, java.util.List<BrowseElement> elements)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canCancel()
Whether or not the user is allowed to cancel the operation.protected boolean
canManagerAccept()
java.util.List<BrowseElement>
getElems()
java.lang.String
getTaskTitle()
A helpful title describing the operation for the user.void
run(TaskProgressListener progressListener)
The "work" function.static java.util.List<BrowseElement>
toElems(java.util.List<OPCTreeNode> nodes)
-
-
-
Constructor Detail
-
OpcImportTask
public OpcImportTask(DesignerContext context, TagPath folderPath, java.util.List<BrowseElement> elements)
-
-
Method Detail
-
toElems
public static java.util.List<BrowseElement> toElems(java.util.List<OPCTreeNode> nodes)
-
getTaskTitle
public java.lang.String getTaskTitle()
Description copied from interface:AsyncClientTask
A helpful title describing the operation for the user.- Specified by:
getTaskTitle
in interfaceAsyncClientTask
-
canCancel
public boolean canCancel()
Description copied from interface:AsyncClientTask
Whether or not the user is allowed to cancel the operation.- Specified by:
canCancel
in interfaceAsyncClientTask
-
getElems
public java.util.List<BrowseElement> getElems()
-
run
public void run(TaskProgressListener progressListener) throws java.lang.Exception
Description copied from interface:AsyncClientTask
The "work" function. Should update the progressListener of status, and check whether the operation has been canceled, if applicable. Should throw an exception on failure.- Specified by:
run
in interfaceAsyncClientTask
- Throws:
java.lang.Exception
-
canManagerAccept
protected boolean canManagerAccept()
-
-