[Jira] Differenication between edit and view vm in Java (getVelocityParameters)

Hello

I created a new custom field type in Jira and I introduced 2 vm files one for edit and one for view custom field in atlassianplugin.xml
Is there a way in method getVelocityParameters to know if edit or view vm will be rendered?

Thanks,
Ibrahim