Package ghidra.framework.main.datatree
Class DialogProjectTreeContext
- java.lang.Object
-
- docking.ActionContext
-
- ghidra.framework.main.datatree.DialogProjectTreeContext
-
- All Implemented Interfaces:
ProjectTreeContext
public class DialogProjectTreeContext extends ActionContext implements ProjectTreeContext
Context specific to the DataTreeDialog.
-
-
Constructor Summary
Constructors Constructor Description DialogProjectTreeContext(ProjectData projectData, javax.swing.tree.TreePath[] selectionPaths, java.util.List<DomainFolder> folderList, java.util.List<DomainFile> fileList, DataTree tree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFileCount()
Returns the number of files selected in the tree.int
getFolderCount()
Returns the number of folders selected in the tree.java.util.List<DomainFile>
getSelectedFiles()
Returns a list ofDomainFile
s selected in the tree.java.util.List<DomainFolder>
getSelectedFolders()
Returns a list ofDomainFolder
s selected in the tree.javax.swing.tree.TreePath[]
getSelectionPaths()
Returns the list of selectedTreePath
s selected.DataTree
getTree()
Returns the project data tree component.-
Methods inherited from class docking.ActionContext
getComponentProvider, getContextObject, getGlobalContext, getMouseEvent, getSourceComponent, getSourceObject, setContextObject, setMouseEvent, setSourceObject, toString
-
-
-
-
Constructor Detail
-
DialogProjectTreeContext
public DialogProjectTreeContext(ProjectData projectData, javax.swing.tree.TreePath[] selectionPaths, java.util.List<DomainFolder> folderList, java.util.List<DomainFile> fileList, DataTree tree)
-
-
Method Detail
-
getSelectionPaths
public javax.swing.tree.TreePath[] 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
public DataTree getTree()
Description copied from interface:ProjectTreeContext
Returns the project data tree component.- Specified by:
getTree
in interfaceProjectTreeContext
- Returns:
- the project data tree component.
-
getSelectedFiles
public java.util.List<DomainFile> 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
public java.util.List<DomainFolder> 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.
-
-