}
protected void fireWorldStarting(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.worldStarting(ev);
} catch (Throwable t) {
AuthoringTool.showErrorDialog("Error in listener responding to world starting.", t);
}
}
}