Examples of History


Examples of org.openstreetmap.josm.data.osm.history.History

            @Override
            public void run() {
                try {
                    for (HistoryOsmPrimitive p : primitives) {
                        final History h = HistoryDataSet.getInstance().getHistory(p.getPrimitiveId());
                        if (h == null) {
                            continue;
                        }
                        GuiHelper.runInEDT(new Runnable() {
                            @Override
View Full Code Here

Examples of org.radargun.stages.tpcc.domain.History

      if (w_name.length() > 10) w_name = w_name.substring(0, 10);
      if (d_name.length() > 10) d_name = d_name.substring(0, 10);
      h_data = w_name + "    " + d_name;

      History h = new History(c.getC_id(), c_d_id, c_w_id, d_id, w_id, new Date(), h_amount, h_data);
      h.store(basicCache, this.slaveIndex);
   }
View Full Code Here

Examples of org.rhq.core.pc.standaloneContainer.History

        platform = inventoryManager.getPlatform();

        System.out.println("\nReady.");

        History history = new History();

        // Run the main loop
        while (!shouldQuit) {
            try {
                System.out.print("[" + history.size() + "]:" + resourceId + " > ");
                String answer = br.readLine();
                if (answer == null) {
                    break;
                }
                if (!isStdin)
                    System.out.println(answer);

                if (answer.equalsIgnoreCase(Command.STDIN.toString())) {
                    br = new BufferedReader(new InputStreamReader(System.in));
                    isStdin = true;
                }

                // Check for history commands
                answer = history.handleHistory(answer);

                // If we have a 'real' command, dispatch it
                if (!answer.startsWith("!")) {
                    String[] tokens = tokenize(answer);
                    if (tokens.length > 0) {
View Full Code Here

Examples of org.sbml.jsbml.History

    }
  }

  @Test
  public void test_Model_setgetModelHistory() {
    History history = new History();
    Creator mc = new Creator();
    Date date = Calendar.getInstance().getTime();
    mc.setFamilyName("Keating");
    mc.setGivenName("Sarah");
    mc.setEmail("sbml-team@caltech.edu");
    mc.setOrganisation("UH");
    history.addCreator(mc);
    history.setCreatedDate(date);
    history.setModifiedDate(date);
    assertTrue(M.isSetHistory() == false);
    M.setHistory(history);
    assertTrue(M.isSetHistory() == true);
    Creator newMC = history.getCreator(0);
    assertTrue(newMC != null);
    assertTrue(newMC.getFamilyName().equals("Keating"));
    assertTrue(newMC.getGivenName().equals("Sarah"));
    assertTrue(newMC.getEmail().equals("sbml-team@caltech.edu"));
    assertTrue(newMC.getOrganisation().equals("UH"));
View Full Code Here

Examples of org.sylfra.idea.plugins.revu.model.History

    return History.class.equals(type);
  }

  public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
  {
    History history = (History) source;

    writer.addAttribute("createdBy", RevuUtils.getNonNullUser(history.getCreatedBy()).getLogin());
    writer.addAttribute("lastUpdatedBy", RevuUtils.getNonNullUser(history.getLastUpdatedBy()).getLogin());
    writer.addAttribute("createdOn", formatDate(history.getCreatedOn()));
    writer.addAttribute("lastUpdatedOn", formatDate(history.getLastUpdatedOn()));
  }
View Full Code Here

Examples of org.sylfra.idea.plugins.revu.model.History

    String createdBy = reader.getAttribute("createdBy");
    String createdOn = reader.getAttribute("createdOn");
    String lastUpdatedBy = reader.getAttribute("lastUpdatedBy");
    String lastUpdatedOn = reader.getAttribute("lastUpdatedOn");

    History history = new History();

    if (createdBy != null)
    {
      history.setCreatedBy(retrieveUser(context, createdBy));
    }
    if (lastUpdatedBy != null)
    {
      history.setLastUpdatedBy(retrieveUser(context, lastUpdatedBy));
    }
    history.setCreatedOn(parseDate(createdOn));
    history.setLastUpdatedOn(parseDate(lastUpdatedOn));

    return history;
  }
View Full Code Here

Examples of org.sylfra.idea.plugins.revu.model.History

    String createdBy = reader.getAttribute("createdBy");
    String createdOn = reader.getAttribute("createdOn");

    IssueNote note = new IssueNote();
    note.setContent(reader.getValue());
    History history = new History();
    note.setHistory(history);

    if (createdBy != null)
    {
      history.setCreatedBy(retrieveUser(context, createdBy));
    }
    history.setCreatedOn(parseDate(createdOn));

    return note;
  }
View Full Code Here

Examples of org.sylfra.idea.plugins.revu.model.History

          reviewCurrentUser.addRole(User.Role.ADMIN);
        }
      }
    }

    History history = new History();
    Date now = new Date();
    history.setCreatedBy(currentUser);
    history.setCreatedOn(now);
    history.setLastUpdatedBy(currentUser);
    history.setLastUpdatedOn(now);
    review.setHistory(history);

    if (fromChangeList != null)
    {
      review.getFileScope().setVcsAfterRev(String.valueOf(fromChangeList.getNumber()));
View Full Code Here

Examples of org.sylfra.idea.plugins.revu.model.History

      {
        reviewCurrentUser.addRole(User.Role.ADMIN);
      }
    }

    History history = new History();
    Date now = new Date();
    history.setCreatedBy(currentUser);
    history.setCreatedOn(now);
    history.setLastUpdatedBy(currentUser);
    history.setLastUpdatedOn(now);
    review.setHistory(history);

    if (fromChangeList != null)
    {
      review.getFileScope().setVcsAfterRev(String.valueOf(fromChangeList.getNumber()));
View Full Code Here

Examples of org.sylfra.idea.plugins.revu.model.History

    return History.class.equals(type);
  }

  public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
  {
    History history = (History) source;

    writer.addAttribute("createdBy", RevuUtils.getNonNullUser(history.getCreatedBy()).getLogin());
    writer.addAttribute("lastUpdatedBy", RevuUtils.getNonNullUser(history.getLastUpdatedBy()).getLogin());
    writer.addAttribute("createdOn", formatDate(history.getCreatedOn()));
    writer.addAttribute("lastUpdatedOn", formatDate(history.getLastUpdatedOn()));
  }
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.