private boolean cancelResolution(){
synchronized (runningResolutionList) {
    if (runningResolutionList.size() == 0) {
      return true;
    }
    String message;
    if (runningResolutionList.size() == 1) {
      message=Messages.getString("ConflictDialog.ConfirmSingleConflictDialogText");
    }
 else {
      message=Messages.getString("ConflictDialog.ConfirmMultiConflictsDialogText");
    }
    final boolean cancelling=MessageDialog.openQuestion(getShell(),Messages.getString("ConflictDialog.ConfirmCancelDialogTitle"),message);
    if (!cancelling) {
      return false;
    }
    for (final Iterator i=runningResolutionList.iterator(); i.hasNext(); ) {
      final ConflictResolution resolution=(ConflictResolution)i.next();
      resolution.removeStatusListener(this);
      resolution.cancel();
    }
  }
  return true;
}

private boolean cancelResolution ( ) { synchronized ( runningResolutionList ) { if ( runningResolutionList . size ( ) == 0 ) { return true ; } String message ; if ( runningResolutionList . size ( ) == 1 ) { message = Messages . getString ( "ConflictDialog.ConfirmSingleConflictDialogText" ) ; } else { message = Messages . getString ( "ConflictDialog.ConfirmMultiConflictsDialogText" ) ; } final boolean cancelling = MessageDialog . openQuestion ( getShell ( ) , Messages . getString ( "ConflictDialog.ConfirmCancelDialogTitle" ) , message ) ; if ( ! cancelling ) { return false ; } for ( final Iterator i = runningResolutionList . iterator ( ) ; i . hasNext ( ) ; ) { final ConflictResolution resolution = ( ConflictResolution ) i . next ( ) ; resolution . removeStatusListener ( this ) ; resolution . cancel ( ) ; } } return true ; }
prompt the user to cancel running resolutions . ( if there are any . )
