if (definition instanceof ModifiableReportParameterDefinition == false)
{
return;
}
final ModifiableReportParameterDefinition mdef = (ModifiableReportParameterDefinition) definition;
if (newElement != null)
{
mdef.removeParameterDefinition(position);
clearParameterValues(report);
report.notifyNodeChildRemoved(newElement);
}
if (oldElement != null)
{
mdef.addParameterDefinition(position, oldElement);
clearParameterValues(report);
report.notifyNodeChildAdded(oldElement);
}
}