Package ghidra.app.context
Class ProgramActionContext
java.lang.Object
docking.DefaultActionContext
ghidra.app.context.ProgramActionContext
- All Implemented Interfaces:
ActionContext
- Direct Known Subclasses:
ProgramLocationActionContext,ProgramSymbolActionContext
-
Field Summary
Fields -
Constructor Summary
ConstructorsChangeConstructorDescriptionProgramActionContext(ComponentProvider provider, Program program) ProgramActionContext(ComponentProvider provider, Program program, Component sourceComponent) ProgramActionContext(ComponentProvider provider, Program program, Component sourceComponent, Object contextObject) -
Method Summary
ChangeModifier and TypeMethodDescriptionNEWbooleanReturns true if the program in this context is the globally active program in the tool.Methods inherited from class docking.DefaultActionContext
getComponentProvider, getContextObject, getEventClickModifiers, getMouseEvent, getSourceComponent, getSourceObject, hasAnyEventClickModifiers, setContextObject, setEventClickModifiers, setMouseEvent, setSourceComponent, setSourceObject, toString
-
Field Details
-
program
-
-
Constructor Details
-
ProgramActionContext
-
ProgramActionContext
-
ProgramActionContext
public ProgramActionContext(ComponentProvider provider, Program program, Component sourceComponent, Object contextObject)
-
-
Method Details
-
getProgram
-
isActiveProgram NEW
public boolean isActiveProgram()Returns true if the program in this context is the globally active program in the tool. This is generally true for all context. Some context providers may be working with a different program than the active program or they may be using the active program with restricted address views. In this latter case, this method should return false.- Returns:
- true if the program is the active program; false means the program may not be the active program
-