The question posed is timely: how can Israel go to war if it's leaders will be hounded by war crimes accusations and subject to arrest abroad? And the answer is: announce in advance what punitive measures it plans to take in response to terror acts, and warn civilians in the area in advance. For example, pick out a known Hamas building and publish it's coordinates and warn the nearby residents that the next rocket fired into Israel will result in that building being targetted and demolished. With UAV surveillance and modern accurate artillery and guided munitions this is simple, and by stating the cost in advance it may disaude Hamas from being so quick to pull the trigger. Civillian casualties will be minimal if radio and leaflet warnings are used extensively. Simple, effective, and out in the open. Israel should also refrain from using controversial munitions like phosphorous and the new DIME explosives which are unnecessary and incite hysterical propaganda reactions..
Knesset approves 2015-16 state budget in first reading (Haaretz)
from the article: In wake of UN Gaza probe, how can Israel go to war again?