2. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/5/2017 12:06:33 PM Central Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

2.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\AwivClientWebApp\main\src\java\gov\va\med\imaging\awiv\business AwivTimer.java Mon Dec 4 21:35:14 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\AwivClientWebApp\main\src\java\gov\va\med\imaging\awiv\business AwivTimer.java Mon Dec 4 21:56:46 2017 UTC

2.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 236
Changed 2 4
Inserted 0 0
Removed 0 0

2.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

2.4 Active regular expressions

No regular expressions were active.

2.5 Comparison detail

  1   /**
  2    * 
  3     Package:  MAG - Vis tA Imaging
  4     WARNING:  Per VHA D irective 2 004-038, t his routin e should n ot be modi fied.
  5     Date Cre ated: Feb  10, 2012
  6     Site Nam e:  Washin gton OI Fi eld Office , Silver S pring, MD
  7       Developer:          
WERFEJ
  8     Descript ion: 
  9  
  10           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  11           ;;  Property  of the US  Government .
  12           ;;  No permis sion to co py or redi stribute t his softwa re is give n.
  13           ;;  Use of un released v ersions of  this soft ware requi res the us er
  14           ;;   to execu te a writt en test ag reement wi th the Vis tA Imaging
  15           ;;   Developm ent Office  of the De partment o f Veterans  Affairs,
  16           ;;   telephon e (301) 73 4-0100.
  17           ;;
  18           ;;  The Food  and Drug A dministrat ion classi fies this  software a s
  19           ;;  a Class I I medical  device.  A s such, it  may not b e changed
  20           ;;  in any wa y.  Modifi cations to  this soft ware may r esult in a n
  21           ;;  adulterat ed medical  device un der 21CFR8 20, the us e of which
  22           ;;  is consid ered to be  a violati on of US F ederal Sta tutes.
  23           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  24  
  25    */
  26   package go v.va.med.i maging.awi v.business ;
  27  
  28   import org .apache.lo gging.log4 j.LogManag er;
  29   import org .apache.lo gging.log4 j.Logger;
  30  
  31   import gov .va.med.im aging.awiv .client.ev ents.AwivT imerRunEve nt;
  32  
  33   import com .google.gw t.user.cli ent.Timer;
  34   /**
  35    * This is  an extens ion of the  GWT Timer .  For som e reason t he GWT tim er doesn't  seem to a lways resp ect the
  36    * cancel  method - t he run eve nt still f ires even  after canc el has bee n called.   This exte nsion sets  a variabl e
  37    * when th e cancel m ethod is c alled and  checks to  see if can celed was  called bef ore callin g the run  method.
  38    * 
  39    * @author         
WERFEJ
  40    *
  41    */
  42   public cla ss AwivTim er
  43   extends Ti mer
  44   {
  45           pr ivate fina l AwivTime rRunEvent  timerRunEv ent;
  46           pr ivate bool ean cancel led;
  47           pr ivate stat ic Logger  logger = L ogManager. getLogger( AwivTimer. class);
  48           pr ivate fina l int time rId;
  49           
  50           pr ivate stat ic int max TimerId =  0;
  51           
  52           pu blic AwivT imer(AwivT imerRunEve nt timerRu nEvent)
  53           {
  54                    maxT imerId++;
  55                    time rId = maxT imerId;
  56                    this .timerRunE vent = tim erRunEvent ;
  57                    canc elled = fa lse;
  58                    logg er.info("C reated tim er '" + ti merId + "' .");
  59           }
  60  
  61           /*  (non-Java doc)
  62            *  @see com. google.gwt .user.clie nt.Timer#r un()
  63            * /
  64           @O verride
  65           pu blic void  run()
  66           {
  67                    logg er.info("R un called  in timer ' " + timerI d + "'.");
  68                    if(! cancelled)
  69                    {
  70                             //Wind ow.alert(" About to d o run");
  71                             if(tim erRunEvent  != null)
  72                             {
  73                                      logger.i nfo("Timer  '" + time rId + "' n ot cancell ed and has  timerRunE vent, call ing event" );
  74                                      timerRun Event.OnTi merRun();
  75                             }
  76                    }
  77                    else
  78                    {
  79                             logger .info("Run  cancelled  on timer  '" + timer Id + "'.") ;
  80                    }
  81           }
  82  
  83           /*  (non-Java doc)
  84            *  @see com. google.gwt .user.clie nt.Timer#c ancel()
  85            * /
  86           @O verride
  87           pu blic void  cancel()
  88           {
  89                    //lo gger.info( "Cancel ca lled on ti mer '" + t imerId + " '.");
  90                    supe r.cancel() ;
  91                    canc elled = tr ue;
  92                    logg er.info("C ancelling  timer '" +  timerId +  "'.");
  93           }
  94  
  95           /*  (non-Java doc)
  96            *  @see com. google.gwt .user.clie nt.Timer#s chedule(in t)
  97            * /
  98           @O verride
  99           pu blic void  schedule(i nt delayMi llis)
  100           {
  101                    supe r.schedule (delayMill is);
  102                    canc elled = fa lse;
  103                    logg er.info("S cheduling  timer '" +  timerId +  "' for '"  + delayMi llis + "'  ms.");
  104                    //lo gger.info( "schedule( " + delayM illis + ")  called on  timer '"  + timerId  + "', rese tting canc elled to f alse");
  105           }
  106  
  107           /*  (non-Java doc)
  108            *  @see com. google.gwt .user.clie nt.Timer#s cheduleRep eating(int )
  109            * /
  110           @O verride
  111           pu blic void  scheduleRe peating(in t periodMi llis)
  112           {
  113                    supe r.schedule Repeating( periodMill is);
  114                    canc elled = fa lse;
  115                    logg er.info("S chedule re peating ti mer '" + t imerId + " ' for '" +  periodMil lis + "' m s.");
  116                    //lo gger.info( "scheduleR epeating("  + periodM illis + ")  called on  timer '"  + timerId  + "', rese tting canc elled to f alse");
  117           }
  118           
  119  
  120   }