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