I think it is fine to demonstrate your military capability so that your enemies know what they are dealing with, as long as you don't do it as a provokation. If they had run an excercise in the Straits of Hormuz, you might question the judgement, but in the Eastern Mediteranean, it seems like a good idea. More wars start over misunderstanding an enemy's intentions and capabilities than anything else.

Iran keeps talking about wiping Israel off the map, so I think it's best if they observe the proven capability of Isreal to actually do the map wiping before they get any ideas. That way they can go on shooting their mouth off, but maybe think twice about shooting anything else off.