@Override
	public void actionPerformed(ActionContext context) {
		FieldHeaderLocation loc = (FieldHeaderLocation) context.getContextObject();
		panel.setTabLock(true);
		formatModel.addFactory(myFieldFactory, loc.getRow(), loc.getColumn());
	}
Method called when the action is invoked.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/format/actions/AddFieldAction.java