@Override
	public void fieldOptionsChanged(Options options, String optionName, Object oldValue,
			Object newValue) {

		if (optionName.equals(FormatManager.ARRAY_DISPLAY_OPTIONS)) {
			CustomOption customOption = options.getCustomOption(FormatManager.ARRAY_DISPLAY_OPTIONS,
				new ArrayElementWrappedOption());

			if (!(customOption instanceof ArrayElementWrappedOption)) {
				throw new AssertException("Someone set an option for " +
					FormatManager.ARRAY_DISPLAY_OPTIONS + " that is not the expected " +
					"ghidra.app.util.viewer.field.NamespaceWrappedOption type.");
			}

			ArrayElementWrappedOption arrayElementOption = (ArrayElementWrappedOption) customOption;
			valuesPerLine = arrayElementOption.getArrayElementsPerLine();
		}
	}
Constructor
@param model the model that the field belongs to.
@param hlProvider the HightLightStringProvider.
@param displayOptions the Options for display properties.
@param fieldOptions the Options for field specific properties.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/ArrayValuesFieldFactory.java