Class ImportTagAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- com.inductiveautomation.ignition.designer.tags.tree.action.TagTreeAction
-
- com.inductiveautomation.ignition.designer.tags.tree.action.ImportTagAction
-
- 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 ImportTagAction extends TagTreeAction
- 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 ImportTagAction(DesignerContext context, javax.swing.JTree tree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
protected void
handleImport(BrowseTreeNode node)
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
-
ImportTagAction
public ImportTagAction(DesignerContext context, javax.swing.JTree tree)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
handleImport
protected void handleImport(BrowseTreeNode node)
-
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
-
-