Examples of save()


Examples of com.qspin.qtaste.config.GUIConfiguration.save()

                        GUIConfiguration guiConfiguration = GUIConfiguration.getInstance();
                        if (evt.getSource() instanceof JSplitPane) {
                            JSplitPane splitPane= (JSplitPane)evt.getSource();
                            guiConfiguration.setProperty(MAIN_HORIZONTAL_SPLIT_DIVIDER_LOCATION_PROPERTY, splitPane.getDividerLocation());
                            try {
                                guiConfiguration.save();
                            } catch (ConfigurationException ex) {
                                logger.error("Error while saving GUI configuration: " + ex.getMessage());
                            }
                        }
                    }
View Full Code Here

Examples of com.qspin.qtaste.ui.csveditor.TestDataEditor.save()

                  }
                }
            }
            TestDataEditor tabDataPane = this.getTestDataPane(i);
            if (tabDataPane != null && tabDataPane.isModified()) {
                tabDataPane.save();
            }
        }

        // check the module imported found in pythonlib
View Full Code Here

Examples of com.qspin.qtaste.ui.jedit.NonWrappingTextPane.save()

        // save and check syntax of the documents
        for (int i = 0; i < editorTabbedPane.getTabCount(); i++) {
            NonWrappingTextPane tabTextPane = getTextPane(i);
            if (tabTextPane != null) {
                if (tabTextPane.isModified()) {
                    tabTextPane.save();
                }
                // check only opened Python files
                if (tabTextPane.getFileName().endsWith(".py")) {
                  ScriptCheckSyntaxValidator scriptCheckSyntaxValidator =
                          new ScriptCheckSyntaxValidator(tabTextPane.getFileName(), tabTextPane.getText());
View Full Code Here

Examples of com.qspin.qtaste.ui.testcampaign.CampaignWriter.save()

                    "Campaign name:", JOptionPane.QUESTION_MESSAGE);
            if (newCampaign != null) {
                // add the new campaign in the list
                if (tcPane.getMainPanel().getTestCampaignPanel().addTestCampaign(newCampaign) >= 0) {
                   String fileName = StaticConfiguration.CAMPAIGN_DIRECTORY + File.separator + newCampaign + "." + StaticConfiguration.CAMPAIGN_FILE_EXTENSION;
                   campaign.save(fileName, newCampaign);
                   JOptionPane.showMessageDialog(null, "Campaign file has been saved in " + fileName +  ".", "Information", JOptionPane.INFORMATION_MESSAGE);
                }
            }
           
    }
View Full Code Here

Examples of com.qspin.qtaste.ui.testcampaign.TestCampaignTreeModel.save()

    }

    public void save(String fileName, String campaignName) {
      if (tree.getModel() instanceof TestCampaignTreeModel) {
          TestCampaignTreeModel model = (TestCampaignTreeModel) tree.getModel();
          model.save(fileName, campaignName);
          hasChanged = false;
          displayNecessaryColumns();
      }
    }
View Full Code Here

Examples of com.rapleaf.jack.test_project.database_1.iface.IPostPersistence.save()

  }

  public void testCreateWithBigintPrimaryKey() throws Exception {
    IPostPersistence posts = dbs.getDatabase1().posts();
    long postId = Integer.MAX_VALUE * 2l;
    assertTrue(posts.save(new Post(postId, "post title", System.currentTimeMillis(), 1, System.currentTimeMillis())));

    posts.clearCacheById(postId);
    Post foundPost = posts.find(postId);
    assertNotNull("Post should be found from db by bigint id", foundPost);

View Full Code Here

Examples of com.rapleaf.jack.test_project.database_1.iface.IUserPersistence.save()

  public void testFindWithFieldsMap() throws IOException, SQLException {
    IUserPersistence users = dbs.getDatabase1().users();

    User u1 = users.create("a_handle", 2);
    users.save(u1);

    User u2 = users.create("another_handle", 2);

    Set<User> found = users.find(new HashMap<Enum, Object>() {
      {
View Full Code Here

Examples of com.rapleaf.jack.test_project.database_1.models.Image.save()

  public void testCreateAssociation() throws Exception {
    IImagePersistence images = dbs.getDatabase1().images();

    Image i1 = images.createDefaultInstance();
    i1.save();

    User u1 = i1.createUser();
    assertEquals(Long.valueOf(u1.getId()), Long.valueOf(i1.getUserId()));
    IUserPersistence users = dbs.getDatabase1().users();
    User userInDb = users.find(i1.getUserId());
View Full Code Here

Examples of com.rapleaf.jack.test_project.database_1.models.User.save()

    User userC = users.createDefaultInstance().setHandle("C").setBio("CEO").setNumPosts(2);
    User userD = users.createDefaultInstance().setHandle("D").setBio("Janitor").setNumPosts(3);
    userA.save();
    userB.save();
    userC.save();
    userD.save();

    Set<User> result;

    // an empty query should return an empty set
    result = users.query().find();
View Full Code Here

Examples of com.ronald.gantengtimesheet.db.ConfigEntity.save()

          }
          exportPDF(file, chkSkipEmptyRecords.isSelected());
          final ConfigEntity ce = ConfigEntityCollection.getInstance().getConfigEntity(
                  ConfigEntityCollection.Config.LAST_DIRECTORY.name);
          ce.setValue(file.getParent());
          ce.save();
        }
      }
    });
     
      final Calendar cal = Calendar.getInstance();
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.