Package gld

Examples of gld.InvalidFilenameException


  {   saver.saveObject(statsOverlay);
  }

  public void doSave(String filename) throws InvalidFilenameException, Exception
  if(!filename.endsWith(".sim") )
      throw new InvalidFilenameException("Filename must have .sim extension.");
    setStatus("Saving simulation to " + filename);
    XMLSaver saver=new XMLSaver(new File(filename));
    saveAll(saver,getSimModel());
    saver.close();
    setStatus("Saved simulation to " + filename);
View Full Code Here


  public void doLoad(String filename) throws InvalidFilenameException, Exception
 
   
   
    if(!filename.endsWith(".infra") && !filename.endsWith(".sim"))
      throw new InvalidFilenameException("You can only load .infra and .sim files.");
    stop();     
   
    new WaitSynchronizationSignal().start();
   
    TrackerFactory.purgeTrackers();
View Full Code Here

TOP

Related Classes of gld.InvalidFilenameException

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.