/**
  * Removes the SelectionListener from this command's eSWT command widget on the specified control.
  *
  * @param control
  * @param listener
  */
 void eswtRemoveCommandSelectionListener(Control control, SelectionListener listener) {
   if (listener != null) {
     org.eclipse.ercp.swt.mobile.Command cmd = getESWTCommand(control);
     if (cmd != null && !cmd.isDisposed()) {
       cmd.removeSelectionListener(listener);
     }
   }
 }
 /**
  * Add a SelectionListener to this command's eSWT command widget on the specified control.
  *
  * @param control
  * @param listener
  */
 void eswtAddCommandSelectionListener(Control control, SelectionListener listener) {
   if (listener != null) {
     org.eclipse.ercp.swt.mobile.Command cmd = getESWTCommand(control);
     if (cmd != null && !cmd.isDisposed()) {
       // Remove listener if it is already added. Same listener
       // should be in same command only once:
       cmd.removeSelectionListener(listener);
       cmd.addSelectionListener(listener);
     }
   }
 }