Package edu.cmu.cs.stage3.util

Examples of edu.cmu.cs.stage3.util.HowMuch


      }
    }
  }

  protected void fireWorldStarted(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.worldStarted(ev);
      } catch (Throwable t) {
View Full Code Here


      }
    }
  }

  protected void fireWorldStopped(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.worldStopped(ev);
      } catch (Throwable t) {
View Full Code Here

      }
    }
  }

  protected void fireWorldPaused(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.worldPaused(ev);
      } catch (Throwable t) {
View Full Code Here

      }
    }
  }

  protected void fireWorldSaved(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.worldSaved(ev);
      } catch (Throwable t) {
View Full Code Here

  }

  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);
      }
    }
  }
View Full Code Here

  }

  protected void fireWorldStopping(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.worldStopping(ev);
      } catch (Throwable t) {
        AuthoringTool.showErrorDialog("Error in listener responding to world stopping.", t);
      }
    }
  }
View Full Code Here

  }

  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);
      }
    }
  }
View Full Code Here

  }

  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);
      }
    }
  }
View Full Code Here

  }

  protected void fireStateChanged(int previousState, int currentState) {
    AuthoringToolStateChangedEvent ev = new AuthoringToolStateChangedEvent(previousState, currentState, world);
    for (java.util.Iterator iter = stateListeners.iterator(); iter.hasNext();) {
      AuthoringToolStateListener listener = (AuthoringToolStateListener) iter.next();
      try {
        listener.stateChanged(ev);
      } catch (Throwable t) {
        AuthoringTool.showErrorDialog("Error in listener responding to authoring tool state changed.", t);
      }
    }
  }
View Full Code Here

  }

  protected void fireWorldLoaded(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.worldLoaded(ev);
      } catch (Throwable t) {
        AuthoringTool.showErrorDialog("Error in listener responding to world loaded.", t);
      }
    }
  }
View Full Code Here

TOP

Related Classes of edu.cmu.cs.stage3.util.HowMuch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.