Make calculator example compatible with Eclipse Platform 3.8

[ci skip]