3. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/5/2018 10:24:06 AM Central Daylight 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.

3.1 Files compared

# Location File Last Modified
1 patch_205_build_9.zip\Java\AwivClientWebApp\main\src\java\gov\va\med\imaging\awiv\client\ui\widgets LogTab.java Wed May 30 14:35:28 2018 UTC
2 patch_205_build_9.zip\Java\AwivClientWebApp\main\src\java\gov\va\med\imaging\awiv\client\ui\widgets LogTab.java Thu May 31 19:18:52 2018 UTC

3.2 Comparison summary

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

3.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

3.4 Active regular expressions

No regular expressions were active.

3.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: Jan  3, 2012
  6     Site Nam e:  Washin gton OI Fi eld Office , Silver S pring, MD
  7       Developer:     PI I
  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.client.u i.widgets;
  27  
  28   import jav a.util.log ging.Logge r;
  29  
  30   import com .google.gw t.logging. client.Has WidgetsLog Handler;
  31   import com .google.gw t.user.cli ent.ui.HTM L;
  32   import com .google.gw t.user.cli ent.ui.Ver ticalPanel ;
  33   import com .google.gw t.user.cli ent.ui.Wid get;
  34   import com .smartgwt. client.typ es.Overflo w;
  35   import com .smartgwt. client.wid gets.IButt on;
  36   import com .smartgwt. client.wid gets.Widge tCanvas;
  37   import com .smartgwt. client.wid gets.Windo w;
  38   import com .smartgwt. client.wid gets.event s.ClickEve nt;
  39   import com .smartgwt. client.wid gets.event s.ClickHan dler;
  40   import com .smartgwt. client.wid gets.form. DynamicFor m;
  41   import com .smartgwt. client.wid gets.form. fields.Tex tAreaItem;
  42   import com .smartgwt. client.wid gets.layou t.VLayout;
  43   import com .smartgwt. client.wid gets.tab.T ab;
  44  
  45   /**
  46    * Contain s the log  tab
  47    * 
  48    * @author   PI I
  49    *
  50    */
  51   public cla ss LogTab
  52   extends Ta b
  53   implements  AwivTab
  54   {
  55  
  56           pr ivate stat ic Logger  logger = L ogger.getL ogger("");
  57           pr ivate Vert icalPanel  vLogPanel  = new Vert icalPanel( );
  58           
  59           @O verride
  60           pu blic int g etCreation Index()
  61           {
  62                    retu rn 0;
  63           }
  64           
  65           pu blic LogTa b()
  66           {
  67                    supe r();
  68                    this .setTitle( "Log");
  69                    vLog Panel.setW idth("100% ");
  70                    vLog Panel.setH eight("100 %");
  71                    // r eceive log  message
  72                    logg er.addHand ler(new Ha sWidgetsLo gHandler(v LogPanel)) ;
  73                    
  74                    // t he content s shown in  the log c annot be c opied to t he clipboa rd (for so me reason)  so to sol ve that pr oblem
  75                    // i  created a  button th at allows  the user t o open a n ew dialog  containing  a textbox  with the  log conten ts
  76                    // t hat can be  copied to  the clipb oard.  The  button ti tle is a b it mislead ing since  it doesn't  actually
  77                    // c opy the co ntents to  the clipbo ard, it ju st makes i t possible  to do it
  78                    IBut ton copyTo ClipboardB utton = ne w IButton( "Copy to C lipboard") ;
  79                    copy ToClipboar dButton.ad dClickHand ler(new Cl ickHandler ()
  80                    {
  81                             
  82                             @Overr ide
  83                             public  void onCl ick(ClickE vent event )
  84                             {                         
  85                                      Window w  = new Win dow();
  86                                      w.setWid th(400);
  87                                      w.setHei ght(400);
  88                                      
  89                                      w.setTit le("AWIV L og");
  90                                      w.center InPage();
  91                                      w.setSho wCloseButt on(true);
  92                                      w.setSho wMinimizeB utton(fals e);
  93                                      w.setCan DragReposi tion(true) ;  
  94                             w.setC anDragResi ze(true); 
  95                             
  96                             Dynami cForm dyna micForm =  new Dynami cForm();
  97                             dynami cForm.setS ize("100%" , "100%");
  98                             dynami cForm.setN umCols(1);
  99                             TextAr eaItem tex tAreaItem  = new Text AreaItem() ;
  100                             textAr eaItem.set ShowTitle( false);
  101                             textAr eaItem.set Width("*") ;
  102                             textAr eaItem.set Height("*" );
  103                             textAr eaItem.set Value(getL ogHtml());
  104                             dynami cForm.setF ields(text AreaItem);
  105                             w.addI tem(dynami cForm);
  106                             
  107                             w.show ();
  108                             }
  109                    });
  110                    
  111                    VLay out layout  = new VLa yout();
  112                    layo ut.setWidt h100();
  113                    layo ut.setHeig ht100();
  114                    layo ut.setCanS electText( true);
  115                    layo ut.setRedr awOnResize (false);
  116                    layo ut.addMemb er(copyToC lipboardBu tton);
  117                    Widg etCanvas w c = new Wi dgetCanvas (vLogPanel );
  118                    wc.s etOverflow (Overflow. AUTO);
  119                    wc.s etWidth100 ();
  120                    wc.s etHeight10 0();               
  121                    //la yout.addMe mber(scrol lPanel);
  122                    layo ut.addMemb er(wc);
  123                    this .setPane(l ayout);
  124                    
  125           }
  126           
  127           pr ivate Stri ng getLogH tml()
  128           {
  129                    Stri ngBuilder  sb = new S tringBuild er();
  130                    
  131                    for( int i = 0;  i < vLogP anel.getWi dgetCount( ); i++)
  132                    {
  133                             Widget  widget =  vLogPanel. getWidget( i);
  134                             if(wid get instan ceof HTML)
  135                             {
  136                                      HTML htm l = (HTML) widget;
  137                                      sb.appen d(html.get HTML());
  138                                      sb.appen d("\n");
  139                             }
  140                    }
  141                    
  142                    retu rn sb.toSt ring();
  143           }
  144  
  145   }