Package ghidra.framework.main.datatable
Class ProjectDataActionContext
- java.lang.Object
-
- docking.ActionContext
-
- ghidra.framework.main.datatable.ProjectDataActionContext
-
- All Implemented Interfaces:
DomainFileProvider
- Direct Known Subclasses:
ProjectDataTreeActionContext
public class ProjectDataActionContext extends ActionContext implements DomainFileProvider
-
-
Constructor Summary
Constructors Constructor Description ProjectDataActionContext(ComponentProvider provider, ProjectData projectData, java.lang.Object contextObject, java.util.List<DomainFolder> selectedFolders, java.util.List<DomainFile> selectedFiles, java.awt.Component comp, boolean isActiveProject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsRootFolder()
java.awt.Component
getComponent()
int
getFileCount()
int
getFolderCount()
ProjectData
getProjectData()
java.util.List<DomainFile>
getSelectedFiles()
java.util.List<DomainFolder>
getSelectedFolders()
boolean
hasExactlyOneFileOrFolder()
boolean
hasOneOrMoreFilesAndFolders()
boolean
isInActiveProject()
boolean
isReadOnlyProject()
boolean
isTransient()
Transient data is that which will appear in a temporary project dialogvoid
setTransient(boolean isTransient)
Transient data is that which will appear in a temporary project dialog-
Methods inherited from class docking.ActionContext
getComponentProvider, getContextObject, getMouseEvent, getSourceComponent, getSourceObject, setContextObject, setMouseEvent, setSourceObject, toString
-
-
-
-
Constructor Detail
-
ProjectDataActionContext
public ProjectDataActionContext(ComponentProvider provider, ProjectData projectData, java.lang.Object contextObject, java.util.List<DomainFolder> selectedFolders, java.util.List<DomainFile> selectedFiles, java.awt.Component comp, boolean isActiveProject)
-
-
Method Detail
-
getSelectedFiles
public java.util.List<DomainFile> getSelectedFiles()
- Specified by:
getSelectedFiles
in interfaceDomainFileProvider
-
getSelectedFolders
public java.util.List<DomainFolder> getSelectedFolders()
-
hasExactlyOneFileOrFolder
public boolean hasExactlyOneFileOrFolder()
-
getFolderCount
public int getFolderCount()
-
getFileCount
public int getFileCount()
- Specified by:
getFileCount
in interfaceDomainFileProvider
-
getProjectData
public ProjectData getProjectData()
-
getComponent
public java.awt.Component getComponent()
-
isInActiveProject
public boolean isInActiveProject()
- Specified by:
isInActiveProject
in interfaceDomainFileProvider
-
isReadOnlyProject
public boolean isReadOnlyProject()
-
hasOneOrMoreFilesAndFolders
public boolean hasOneOrMoreFilesAndFolders()
-
containsRootFolder
public boolean containsRootFolder()
-
setTransient
public void setTransient(boolean isTransient)
Transient data is that which will appear in a temporary project dialog- Parameters:
isTransient
- true if transient
-
isTransient
public boolean isTransient()
Transient data is that which will appear in a temporary project dialog- Returns:
- true if transient
-
-