public interface CodeTemplateProcessor
CodeTemplateInsertRequestwhich was given to it during construction by
|Modifier and Type||Method and Description|
Notification that a master parameter's value has been modified by the user and the processor may need to react to it.
Notify the processor that the insert request which it services was already completed and there is no more work to do.
Update the values of the parameters in the parsed code template before the code template gets physically inserted into the document.
CodeTemplateInsertRequest.getMasterParameters()to find the master parameters.
CodeTemplateParameter.setValue(String)can be called. The value will be propagated to all slave parameters automatically.
void parameterValueChanged(CodeTemplateParameter masterParameter, boolean typingChange)
The processor is only allowed to change master parameters.
Slave parameter's changes are not notified at all.
masterParameter- master parameter that was changed.
typingChange- allows to react to user's typing immediately or only react once the active parameter gets changed e.g. by TAB.
trueis passed if the parameter value was modified by user's typing. Some processors may want such immediate reaction.
falsewhich happens when at least one typing change occurred in the current active parameter and the active parameter is being changed by TAB or Shift-TAB or Enter.
Built on June 22 2019. | Copyright © 2017-2019 Apache Software Foundation. All Rights Reserved.