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 intgetFileCount()Returns the number of files selected in the tree.intgetFolderCount()Returns the number of folders selected in the tree.java.util.List<DomainFile>getSelectedFiles()Returns a list ofDomainFiles selected in the tree.java.util.List<DomainFolder>getSelectedFolders()Returns a list ofDomainFolders selected in the tree.javax.swing.tree.TreePath[]getSelectionPaths()Returns the list of selectedTreePaths selected.DataTreegetTree()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:ProjectTreeContextReturns the list of selectedTreePaths selected.- Specified by:
getSelectionPathsin interfaceProjectTreeContext- Returns:
- the list of selected
TreePaths selected.
-
getTree
public DataTree getTree()
Description copied from interface:ProjectTreeContextReturns the project data tree component.- Specified by:
getTreein interfaceProjectTreeContext- Returns:
- the project data tree component.
-
getSelectedFiles
public java.util.List<DomainFile> getSelectedFiles()
Description copied from interface:ProjectTreeContextReturns a list ofDomainFiles selected in the tree.- Specified by:
getSelectedFilesin interfaceProjectTreeContext- Returns:
- a list of
DomainFiles selected in the tree.
-
getSelectedFolders
public java.util.List<DomainFolder> getSelectedFolders()
Description copied from interface:ProjectTreeContextReturns a list ofDomainFolders selected in the tree.- Specified by:
getSelectedFoldersin interfaceProjectTreeContext- Returns:
- a list of
DomainFolders selected in the tree.
-
getFolderCount
public int getFolderCount()
Description copied from interface:ProjectTreeContextReturns the number of folders selected in the tree.- Specified by:
getFolderCountin interfaceProjectTreeContext- Returns:
- the number of folders selected in the tree.
-
getFileCount
public int getFileCount()
Description copied from interface:ProjectTreeContextReturns the number of files selected in the tree.- Specified by:
getFileCountin interfaceProjectTreeContext- Returns:
- the number of files selected in the tree.
-
-