Package ghidra.framework.main.datatree
Class DialogProjectTreeContext
java.lang.Object
docking.DefaultActionContext
ghidra.framework.main.datatree.DialogProjectTreeContext
- All Implemented Interfaces:
ActionContext
,ProjectTreeContext
Context specific to the DataTreeDialog.
-
Constructor Summary
ConstructorDescriptionDialogProjectTreeContext
(ProjectData projectData, TreePath[] selectionPaths, List<DomainFolder> folderList, List<DomainFile> fileList, DataTree tree) -
Method Summary
Modifier and TypeMethodDescriptionReturns the node that represents the context object for this contextint
Returns the number of files selected in the tree.int
Returns the number of folders selected in the tree.Returns a list ofDomainFile
s selected in the tree.Returns a list ofDomainFolder
s selected in the tree.TreePath[]
Returns the list of selectedTreePath
s selected.getTree()
Returns the project data tree component.Methods inherited from class docking.DefaultActionContext
getComponentProvider, getContextObject, getEventClickModifiers, getMouseEvent, getSourceComponent, getSourceObject, hasAnyEventClickModifiers, setContextObject, setEventClickModifiers, setMouseEvent, setSourceComponent, setSourceObject, toString
-
Constructor Details
-
DialogProjectTreeContext
public DialogProjectTreeContext(ProjectData projectData, TreePath[] selectionPaths, List<DomainFolder> folderList, List<DomainFile> fileList, DataTree tree)
-
-
Method Details
-
getSelectionPaths
Description copied from interface:ProjectTreeContext
Returns the list of selectedTreePath
s selected.- Specified by:
getSelectionPaths
in interfaceProjectTreeContext
- Returns:
- the list of selected
TreePath
s selected.
-
getTree
Description copied from interface:ProjectTreeContext
Returns the project data tree component.- Specified by:
getTree
in interfaceProjectTreeContext
- Returns:
- the project data tree component.
-
getSelectedFiles
Description copied from interface:ProjectTreeContext
Returns a list ofDomainFile
s selected in the tree.- Specified by:
getSelectedFiles
in interfaceProjectTreeContext
- Returns:
- a list of
DomainFile
s selected in the tree.
-
getSelectedFolders
Description copied from interface:ProjectTreeContext
Returns a list ofDomainFolder
s selected in the tree.- Specified by:
getSelectedFolders
in interfaceProjectTreeContext
- Returns:
- a list of
DomainFolder
s selected in the tree.
-
getFolderCount
public int getFolderCount()Description copied from interface:ProjectTreeContext
Returns the number of folders selected in the tree.- Specified by:
getFolderCount
in interfaceProjectTreeContext
- Returns:
- the number of folders selected in the tree.
-
getFileCount
public int getFileCount()Description copied from interface:ProjectTreeContext
Returns the number of files selected in the tree.- Specified by:
getFileCount
in interfaceProjectTreeContext
- Returns:
- the number of files selected in the tree.
-
getContextNode
Description copied from interface:ProjectTreeContext
Returns the node that represents the context object for this context- Specified by:
getContextNode
in interfaceProjectTreeContext
- Returns:
- the node
-