Class ScriptPackageNode
java.lang.Object
com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
com.inductiveautomation.ignition.designer.navtree.model.FolderNode
com.inductiveautomation.ignition.designer.scripteditor.workspace.ScriptPackageNode
- All Implemented Interfaces:
Iterable<AbstractNavTreeNode>,TreeNode
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.FolderNode
FolderNode.FindReplaceAction, FolderNode.NewFolderActionNested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
AbstractResourceNavTreeNode.OverrideResult, AbstractResourceNavTreeNode.OverrideResultStatusNested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
AbstractNavTreeNode.DeleteReason, AbstractNavTreeNode.PopupAction -
Field Summary
FieldsFields inherited from class com.inductiveautomation.ignition.designer.navtree.model.FolderNode
expandedIcon, newFolderAction, RESOURCE_COMPARATOR, resourceScopeFields inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
context, editDocumentationAction, editDocumentationMenuItem, exportAction, inheritedIcon, overrideAction, overrideEnabledAction, overrideEnabledMenuItem, protectedAction, protectedMenuItem, resourceId, resourcePath, restricted, revertAction, revertMenuItemFields inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
bold, children, childrenLoaded, copyAction, copyPathAction, cutAction, deleteAction, depth, discardOverridesAction, icon, italic, log, model, name, parent, pasteAction, renameAction, selectionModel, text, thumbnail, tooltip -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDrag(List<AbstractNavTreeNode> draggedChildren) Can the nodes controlled by this action handling node be dragged?booleancanDrop(AbstractNavTreeNode dropTarget, List<DataFlavor> flavors) booleancanPaste(List<AbstractNavTreeNode> selectedChildren, Transferable clipboard) Can this action handler handle a paste given the data flavors currently available in the clipboard? data may be null.protected AbstractNavTreeNodedoCopy(List<? extends AbstractNavTreeNode> selectedChildren) Called when the copy action is performed.doCut(List<? extends AbstractNavTreeNode> selectedChildren) Called when the cut action is performed.voiddoDelete(List<? extends AbstractNavTreeNode> children, AbstractNavTreeNode.DeleteReason reason) Called when the delete action is performed, if confirmDelete returned truebooleandoPaste(List<? extends AbstractNavTreeNode> selectedChildren, Transferable clipboardContents, boolean isDrop) Called when the paste action is performedReturns an alternate icon for when this node is expanded, if applicable.protected StringgetInvalidNameErrorMessage(String attemptedName) Returns the name of the desired workspace for this node.protected voidinitPopupMenu(JPopupMenu menu, TreePath[] paths, List<AbstractNavTreeNode> selection, int modifiers) Default implementation calls setupEditActions(), and then addEditActions()protected booleanisValidName(String aName) voidCalled after this node has been edited in the tree.Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.FolderNode
addOverrideEnabledMenuItem, addRevertMenuItem, canPaste, getPath, getResourceType, install, isEditActionHandler, isOverridden, isProtectedEnabled, isTopLevelNode, loadChildren, modifyOverrideAction, override, pastingOnSelf, project, requiresRecreate, setName, setupEditActions, uninstallMethods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
addActionsForInheritedNodes, addBadges, addConcurrentUsersBadges, addDeleteOrDiscardOverridesMenuItem, addDocumentationMenuItem, addEditActions, addExportMenuItem, addInheritedBadge, addNotesBadge, addOverriddenBadge, addOverrideOrDiscardOverridesMenuItem, addProtectMenuItem, alterName, canCopy, canDelete, commitIfOpen, editDocumentation, gatherChildrenIds, getAdditionalExportIds, getDeleteAction, getInheritanceString, getPopupActions, getProjectResource, getResourceId, getResourcePath, inherited, isChanged, isEditable, isInherited, isLocal, isOpen, isOverrideEnabled, isRestricted, isValid, notInherited, onDoubleClick, onResourceModified, open, overridden, revert, selectChild, setOverrideEnabled, setProtected, setRevertedResourcePathMethods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
addEditActions, checkChildren, children, confirmDelete, createResourceCopy, debug, debug, dispatchSelectionEvent, expand, expandAndSelect, findChild, findCommonEditActionHandler, findDropHandler, findEditActionHandler, forceChildrenReload, getAllowsChildren, getChildAt, getChildCount, getClipboard, getDepth, getIcon, getIndex, getModel, getName, getParent, getSelectionModel, getSortOrder, getText, getThumbnail, getTooltip, isBold, isItalic, isLeaf, isModuleNode, isSelected, iterator, newLogger, notifyChildNameChanged, onChildrenSelected, onSelected, pathToRoot, performOnAllChildren, recreate, recreate, refresh, reload, select, select, setBold, setChildren, setIcon, setItalic, setText, setThumbnail, setTooltip, showPopupMenu, toString, uninstallChildren, useThumbnailTooltip, visitIfLoadedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
workspace
-
-
Method Details
-
createChildNode
- Specified by:
createChildNodein classFolderNode
-
initPopupMenu
protected void initPopupMenu(JPopupMenu menu, TreePath[] paths, List<AbstractNavTreeNode> selection, int modifiers) Description copied from class:AbstractNavTreeNodeDefault implementation calls setupEditActions(), and then addEditActions()- Overrides:
initPopupMenuin classAbstractNavTreeNode
-
getExpandedIcon
Description copied from class:AbstractNavTreeNodeReturns an alternate icon for when this node is expanded, if applicable. Default implementation simply returns getIcon()- Overrides:
getExpandedIconin classFolderNode
-
getWorkspaceName
Description copied from class:AbstractNavTreeNodeReturns the name of the desired workspace for this node. Default behavior is to delegate to the parent. null mean's don't affect workspace selection.- Overrides:
getWorkspaceNamein classAbstractNavTreeNode
-
isValidName
- Overrides:
isValidNamein classAbstractNavTreeNode
-
getInvalidNameErrorMessage
- Overrides:
getInvalidNameErrorMessagein classAbstractResourceNavTreeNode
-
onEdit
Description copied from class:AbstractNavTreeNodeCalled after this node has been edited in the tree.- Overrides:
onEditin classAbstractResourceNavTreeNode
-
doCopy
Description copied from class:AbstractNavTreeNodeCalled when the copy action is performed.- Overrides:
doCopyin classAbstractNavTreeNode- Returns:
- the current selection as a
Transferable, or null if the copy failed. Will be added to the system clipboard.
-
canDrag
Description copied from class:AbstractNavTreeNodeCan the nodes controlled by this action handling node be dragged?- Overrides:
canDragin classAbstractNavTreeNode
-
canPaste
Description copied from class:AbstractNavTreeNodeCan this action handler handle a paste given the data flavors currently available in the clipboard? data may be null.- Overrides:
canPastein classAbstractNavTreeNode
-
doPaste
public boolean doPaste(List<? extends AbstractNavTreeNode> selectedChildren, Transferable clipboardContents, boolean isDrop) Description copied from class:AbstractNavTreeNodeCalled when the paste action is performed- Overrides:
doPastein classAbstractNavTreeNodeclipboardContents- The current contents of the clipboard to paste.isDrop- Indicates whether this paste originated from a drop action. If false, originated from a keyboard or menu paste shortcut.- Returns:
- whether or not the paste successfully completed.
-
doCut
Description copied from class:AbstractNavTreeNodeCalled when the cut action is performed.- Overrides:
doCutin classAbstractNavTreeNode- Returns:
- the current selection as a
Transferable, or null if the cut failed. Will be added to the system clipboard.
-