Examples of save()


Examples of org.netbeans.api.actions.Savable.save()

    @Override
    public void run () {
        try {
            Savable save = context.getLookup().lookup( Savable.class );
            if (save != null) {
                save.save();
            }
            NodeJSExecutable.getDefault().run( context.getPrimaryFile(), null );
        } catch ( IOException ex ) {
            Exceptions.printStackTrace( ex );
        }
View Full Code Here

Examples of org.netbeans.modules.dbschema.SchemaElement.save()

                            .append(DBSCHEMA_EXTENSION).toString()));

                // XXX Unfortunately, if SchemaElement.save gets an
                // IOException, it prints the stack trace but does not
                // let us handle it :-(
                schemaElement.save(outstream);

            } catch (IOException ex) {
                // Catch FileNotFound, etc.
                throw JDOCodeGeneratorHelper.createGeneratorException(
                        "CMG.CannotSaveDBSchema", bundle, ex); // NOI18N
View Full Code Here

Examples of org.netbeans.modules.nodejs.ProjectMetadataImpl.save()

                map.put( lib.name, lib.version );
            }
            Map m = metadata.getMap();
            m.put( "dependencies", map );
            try {
                metadata.save();
            } catch ( IOException ex ) {
                Exceptions.printStackTrace( ex );
            }
        } else {
            System.out.println( "project metadata was null" );
View Full Code Here

Examples of org.netbeans.server.snapshots.SnapshotManager.save()

                    return TransactionResult.NONE;
                }
                SnapshotManager sm = SnapshotManager.loadSnapshot(sb.getLogfileId());
                ByteArrayOutputStream bos = new ByteArrayOutputStream();
                DataOutputStream dos = new DataOutputStream(bos);
                sm.save(dos);
                dos.close();
                String additionalS = "";
                if(sm.hasNpssContent()){
                    additionalS = "s";
                }
View Full Code Here

Examples of org.neuroph.core.NeuralNetwork.save()

            myPerceptron.learnInSameThread(trainingSet);
            // test perceptron
            System.out.println("Testing trained perceptron");
            testNeuralNetwork(myPerceptron, trainingSet);
            // save trained perceptron
            myPerceptron.save("mySamplePerceptron.nnet");
            // load saved neural network
            NeuralNetwork loadedPerceptron = NeuralNetwork.load("mySamplePerceptron.nnet");
            // test loaded neural network
            System.out.println("Testing loaded perceptron");
            testNeuralNetwork(loadedPerceptron, trainingSet);
View Full Code Here

Examples of org.neuroph.nnet.MultiLayerPerceptron.save()

        // test perceptron
        System.out.println("Testing trained neural network");
        testNeuralNetwork(myMlPerceptron, trainingSet);

        // save trained neural network
        myMlPerceptron.save("myMlPerceptron.nnet");

        // load saved neural network
        NeuralNetwork loadedMlPerceptron = NeuralNetwork.load("myMlPerceptron.nnet");

        // test loaded neural network
View Full Code Here

Examples of org.neuroph.nnet.Perceptron.save()

            myPerceptron.learnInSameThread(trainingSet);
            // test perceptron
            System.out.println("Testing trained perceptron");
            testNeuralNetwork(myPerceptron, trainingSet);
            // save trained perceptron
            myPerceptron.save("mySamplePerceptron.nnet");
            // load saved neural network
            NeuralNetwork loadedPerceptron = NeuralNetwork.load("mySamplePerceptron.nnet");
            // test loaded neural network
            System.out.println("Testing loaded perceptron");
            testNeuralNetwork(loadedPerceptron, trainingSet);
View Full Code Here

Examples of org.newdawn.slick.font.HieroSettings.save()

    settings.setGlyphPageHeight(((Integer)glyphPageHeightCombo.getSelectedItem()).intValue());
    for (Iterator iter = effectPanels.iterator(); iter.hasNext();) {
      EffectPanel panel = (EffectPanel)iter.next();
      settings.getEffects().add(panel.getEffect());
    }
    settings.save(file);
  }

  void open (File file) throws SlickException {
    EffectPanel[] panels = (EffectPanel[])effectPanels.toArray(new EffectPanel[effectPanels.size()]);
    for (int i = 0; i < panels.length; i++)
View Full Code Here

Examples of org.nutz.mongo.MongoDao.save()

    //创建匿名用户
    User anonymous = dao.findOne(User.class, new BasicDBObject("provider", "anonymous"));
    if (anonymous == null) {
      anonymous = new User();
      anonymous.setProvider("anonymous");
      dao.save(anonymous);
    }
   
    //创建超级用户
    User root = dao.findOne(User.class, new BasicDBObject("provider", "root"));
    if (root == null) {
View Full Code Here

Examples of org.nuxeo.ecm.core.api.CoreSession.save()

        } else {
            session.removeDocument(docRef);
        }
       
        // Must save session to ensure that currentLifeCycleState is updated
        session.save();
           
        return documentList(request);
    }

    /**
 
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.