Class CopyTagXmlAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- com.inductiveautomation.ignition.designer.tags.tree.action.TagTreeAction
-
- com.inductiveautomation.ignition.designer.tags.tree.action.CopyTagXmlAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,javax.swing.event.TreeSelectionListener
public class CopyTagXmlAction extends TagTreeAction
Used only for client tags. Allows client tags to be copied as XML text.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.ignition.designer.tags.tree.action.TagTreeAction
context, tree
-
-
Constructor Summary
Constructors Constructor Description CopyTagXmlAction(DesignerContext context, TagBrowserTree tree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
protected int
maxSelectionCount()
protected boolean
shouldBeEnabled(BrowseTreeNode node)
Called for each selected node that isn't a meta node.-
Methods inherited from class com.inductiveautomation.ignition.designer.tags.tree.action.TagTreeAction
allowMixedProviders, findProvider, getEligibleSelectedTagPaths, getNode, getNodes, getSelectedTagPaths, getTagManager, isNodeEligible, setTree, shouldBeEnabled, valueChanged
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
CopyTagXmlAction
public CopyTagXmlAction(DesignerContext context, TagBrowserTree tree)
-
-
Method Detail
-
shouldBeEnabled
protected boolean shouldBeEnabled(BrowseTreeNode node)
Description copied from class:TagTreeAction
Called for each selected node that isn't a meta node. The action will become enabled only if all selected nodes are not meta nodes and this function returns true for each node.- Specified by:
shouldBeEnabled
in classTagTreeAction
-
maxSelectionCount
protected int maxSelectionCount()
- Specified by:
maxSelectionCount
in classTagTreeAction
- Returns:
- the maximum selection that could cause this action to be enabled
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
-