@Override
			public boolean isEnabledForContext(ActionContext context) {
				return currentProgram != null;
			}
create the action and call the subroutine that handles it
Ghidra/Extensions/sample/src/main/java/ghidra/examples/SampleProgramTreePlugin.java