Package ghidra.app.context
Class ProgramLocationActionContext
java.lang.Object
docking.ActionContext
ghidra.app.context.ProgramActionContext
ghidra.app.context.ProgramLocationActionContext
- Direct Known Subclasses:
NavigatableActionContext
-
Field Summary
Fields inherited from class ghidra.app.context.ProgramActionContext
program
-
Constructor Summary
ConstructorsConstructorDescriptionProgramLocationActionContext
(ComponentProvider provider, Program program, ProgramLocation location, ProgramSelection selection, ProgramSelection highlight) -
Method Summary
Modifier and TypeMethodDescriptionReturns the code unit containing the action's program location or nullboolean
boolean
Methods inherited from class ghidra.app.context.ProgramActionContext
getProgram
Methods inherited from class docking.ActionContext
getComponentProvider, getContextObject, getEventClickModifiers, getGlobalContext, getMouseEvent, getSourceComponent, getSourceObject, hasAnyEventClickModifiers, setContextObject, setEventClickModifiers, setMouseEvent, setSourceObject, toString
-
Constructor Details
-
ProgramLocationActionContext
public ProgramLocationActionContext(ComponentProvider provider, Program program, ProgramLocation location, ProgramSelection selection, ProgramSelection highlight)
-
-
Method Details
-
getLocation
- Returns:
- Returns the program location.
-
getSelection
- Returns:
- Returns the program selection.
-
getHighlight
-
getAddress
- Returns:
- address corresponding to the action's program location or null if program location is null.
-
getCodeUnit
Returns the code unit containing the action's program location or null- Returns:
- the code unit containing the action's program location or null
-
hasSelection
public boolean hasSelection() -
hasHighlight
public boolean hasHighlight()
-