protected void decoderEventAction(VSDecoderEvent e){
  if (e.getType() == VSDecoderEvent.EventType.LOCATION_CHANGE) {
    if (e.getData() != null) {
      jmri.util.PhysicalLocation p=(jmri.util.PhysicalLocation)e.getData();
      statusBar.setMessage("Location:" + p.toString());
    }
 else {
      statusBar.setMessage("Location: unknown");
    }
  }
}

protected void decoderEventAction ( VSDecoderEvent e ) { if ( e . getType ( ) == VSDecoderEvent . EventType . LOCATION_CHANGE ) { if ( e . getData ( ) != null ) { jmri . util . PhysicalLocation p = ( jmri . util . PhysicalLocation ) e . getData ( ) ; statusBar . setMessage ( "Location:" + p . toString ( ) ) ; } else { statusBar . setMessage ( "Location: unknown" ) ; } } }
handle an event from the vsdecoder
