protected void fireWorldPausing(int previousState, int currentState, edu.cmu.cs.stage3.alice.core.World world) {
AuthoringToolStateChangedEvent ev = new AuthoringToolStateChangedEvent(previousState, currentState, world);
for (java.util.Iterator iter = stateListeners.iterator(); iter.hasNext();) {
AuthoringToolStateListener listener = (AuthoringToolStateListener) iter.next();
try {
listener.worldPausing(ev);
} catch (Throwable t) {
AuthoringTool.showErrorDialog("Error in listener responding to world pausing.", t);
}
}
}