Examples of saveToFile()


Examples of com.barrybecker4.game.common.persistence.GameExporter.saveToFile()

     */
    public void saveGame(File file, AssertionError ae) {
        String fPath = file.getAbsolutePath();
        fPath = SgfFileFilter.addExtIfNeeded(fPath, SgfFileFilter.SGF_EXTENSION);
        GameExporter exporter = controller_.getExporter();
        exporter.saveToFile(fPath, ae);
    }

    /**
     *  Animate the last move so the player does not lose orientation.
     *  By default this just redraws the board, but for games with complex moves,
View Full Code Here

Examples of com.barrybecker4.game.common.persistence.GameExporter.saveToFile()

        if ( file != null && state == JFileChooser.APPROVE_OPTION ) {
            // if it does not have the .sgf extension already then add it
            String fPath = file.getAbsolutePath();
            fPath = SgfFileFilter.addExtIfNeeded(fPath, SgfFileFilter.SGF_EXTENSION);
            GameExporter exporter = controller_.getExporter();
            exporter.saveToFile(fPath, ae);
        }
    }

    /**
     * Cause the board UI to draw itself based on the current state of the game.
View Full Code Here

Examples of com.digitalpebble.classification.Lexicon.saveToFile()

            equiv = lexicon.compact();
        }

        // save the modified lexicon file
        if (newLexicon != null)
            lexicon.saveToFile(newLexicon);

        // dump a new vector file
        Utils.writeExamples(ftc, lexicon, true, vector_location, equiv, format);
    }
View Full Code Here

Examples of com.salesforce.ide.core.model.Component.saveToFile()

        }

        if (save) {
            try {
                packageManifestComponent.setFile(packageManifest.getBytes());
                packageManifestComponent.saveToFile(false, new NullProgressMonitor());
            } catch (CoreException e) {
                String logMessage = Utils.generateCoreExceptionLog(e);
                logger.warn("Package manifest save failed: " + logMessage);
                throw new FactoryException(e);
            }
View Full Code Here

Examples of com.salesforce.ide.core.model.Component.saveToFile()

                                // skip auto build for this operation
                                ContainerDelegate.getInstance().getServiceLocator().getProjectService().flagSkipBuilder(getProject());

                                monitorCheck(monitor);
                                syncResources.remove(syncInfo.getLocal());
                                IFile file = remoteComponent.saveToFile(true, monitor);

                                if (logger.isInfoEnabled()) {
                                    logger.info("Saved '" + file.getProjectRelativePath().toPortableString()
                                            + "' to project '" + file.getProject().getName()
                                            + "' and remove as sync resource");
View Full Code Here

Examples of com.santiagolizardo.beobachter.beans.LogTypeManager.saveToFile()

    logType.setRefreshInterval(interval);
    logType.setRules(modelRules.getRules());

    try {
      LogTypeManager logTypes = LogTypeManager.getInstance();
      logTypes.saveToFile(logType);
    } catch (IOException ex) {
      logger.severe(ex.getMessage());
    }
  }
}
View Full Code Here

Examples of com.santiagolizardo.beobachter.beans.LogTypeManager.saveToFile()

          return;
        }
        LogType logType = new LogType(name);
        try {
          LogTypeManager logTypes = LogTypeManager.getInstance();
          logTypes.saveToFile(logType);

          updateLogTypes();
        } catch (IOException ee) {
          logger.warning(ee.getMessage());
        }
View Full Code Here

Examples of geodress.model.PictureBox.saveToFile()

          logger.log(Level.FINE, "Picture data will be exported to "
              + exportFile.getName() + ".");
          System.out.println("Picture data will be exported to "
              + exportFile.getName() + ".");
          try {
            pictureBox.saveToFile(exportFile,
                PictureBox.FORMAT_TXT_OS);
          } catch (IOException ioe) {
            logger
                .log(
                    Level.WARNING,
View Full Code Here

Examples of image.processing.algorithms.clustering.kmeans.AlgoKMeansCol.saveToFile()

               
    // Apply the algorithm for colour
    AlgoKMeansCol algoKMeans = new AlgoKMeansCol();
    algoKMeans.runAlgorithm(input, k);
    algoKMeans.printStatistics();
    algoKMeans.saveToFile(output);
               
                //Reenable button
                Interface.clusterButton.setEnabled(true);

  }
View Full Code Here

Examples of image.processing.algorithms.clustering.kmeans.AlgoKMeansFeat.saveToFile()

               
    // Apply the algorithm for colour
    AlgoKMeansFeat algoKMeans = new AlgoKMeansFeat();
    algoKMeans.runAlgorithm(input, 3);
    algoKMeans.printStatistics();
    algoKMeans.saveToFile(output);
               
                //Reenable button
                Interface.clusterButton.setEnabled(true);

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.