Package ghidra.framework.main.datatable
Interface ProjectTreeContext
-
- All Known Implementing Classes:
DialogProjectTreeContext,FrontEndProjectTreeContext
public interface ProjectTreeContextCommon methods appropriate for both theFrontEndProjectTreeContextand theDialogProjectTreeContext. The project tree actions require that the contexts be separate even though they need many of the same methods. By extracting the methods to this interface, the contexts can be kept separate, but can share action code.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getFolderCount
int getFolderCount()
Returns the number of folders selected in the tree.- Returns:
- the number of folders selected in the tree.
-
getFileCount
int getFileCount()
Returns the number of files selected in the tree.- Returns:
- the number of files selected in the tree.
-
getSelectedFolders
java.util.List<DomainFolder> getSelectedFolders()
Returns a list ofDomainFolders selected in the tree.- Returns:
- a list of
DomainFolders selected in the tree.
-
getSelectedFiles
java.util.List<DomainFile> getSelectedFiles()
Returns a list ofDomainFiles selected in the tree.- Returns:
- a list of
DomainFiles selected in the tree.
-
getTree
DataTree getTree()
Returns the project data tree component.- Returns:
- the project data tree component.
-
getSelectionPaths
javax.swing.tree.TreePath[] getSelectionPaths()
Returns the list of selectedTreePaths selected.- Returns:
- the list of selected
TreePaths selected.
-
-