Package net.sourceforge.processdash.log.defects

Examples of net.sourceforge.processdash.log.defects.Defect


    }

    public void save() {
      refreshFixTimeFromStopwatch();

      Defect d = new Defect();
      d.date = fix_date.getDate();
      if (d.date == null)
          d.date = date;
      d.number = defectNumber;
      d.defect_type = (String)defect_type.getSelectedItem();
View Full Code Here


        public void caseElement(Element e, List k) {
            if (DEFECT_TAG.equals(e.getTagName())) {
                String path = e.getAttribute(PATH_ATTR);

                Defect d = new Defect();
                d.date = XMLUtils.getXMLDate(e, DATE_ATTR);
                d.number = ""; // e.getAttribute(NUM_ATTR);
                d.defect_type = e.getAttribute(DEFECT_TYPE_ATTR);
                d.phase_injected = e.getAttribute(INJECTED_ATTR);
                d.phase_removed = e.getAttribute(REMOVED_ATTR);
View Full Code Here

        int addedCount = 0;
        int updatedCount = 0;
        int unchangedCount = 0;
       
        for (Iterator i = defects.iterator(); i.hasNext();) {
            Defect newDefect = (Defect) i.next();
            Defect oldDefect = defectLog.getDefect(newDefect.number);
            if (oldDefect == null) {
                addedCount++;
                defectLog.writeDefect(newDefect);
            } else {
                Defect originalDefect = (Defect) oldDefect.clone();
                oldDefect.defect_type = merge(oldDefect.defect_type, newDefect.defect_type);
                oldDefect.phase_injected = merge(oldDefect.phase_injected, newDefect.phase_injected);
                oldDefect.phase_removed = merge(oldDefect.phase_removed, newDefect.phase_removed);
                oldDefect.description = merge(oldDefect.description, newDefect.description);
                oldDefect.fix_time = merge(oldDefect.fix_time, newDefect.fix_time);
                oldDefect.fix_defect = merge(oldDefect.fix_defect, newDefect.fix_defect);
                if (originalDefect.equals(oldDefect)) {
                    unchangedCount++;
                } else {
                    updatedCount++;
                    defectLog.writeDefect(oldDefect);
                }
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.log.defects.Defect

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.