@Override
 public void operationFailed(DataOperation type, ImpedimentOperation identifier, String message) {
   if ((type == DataOperation.Remove) && (identifier == ImpedimentOperation.ImpedimentStatus)) {
     Util.showError(
         this, i18n.tr("Could not remove impediment status: " + message), i18n.tr("Error"));
   }
 }
 @Override
 public void operationFailed(DataOperation type, MetricOperation identifier, String message) {
   if ((type == DataOperation.Custom) && (identifier == MetricOperation.Graph)) {
     Util.showError(
         this,
         i18n.tr("Error occurred while calculating sprint burndown information: ") + message,
         i18n.tr("Error"));
   }
 }
 @Override
 public void operationFailed(DataOperation type, MetricOperation identifier, String message) {
   if ((type == DataOperation.Custom)
       && ((identifier == MetricOperation.WorkEffectivenessCalculated)
           || (identifier == MetricOperation.EarnedValueCalculated))) {
     _resultInput.setSelectedItem(_previous.toEngineeringString());
     OK.requestFocus();
   } else if ((type == DataOperation.Insert)
       && ((identifier == MetricOperation.ReleaseMeasure)
           || (identifier == MetricOperation.SprintMeasure)
           || (identifier == MetricOperation.TaskMeasure)
           || (identifier == MetricOperation.PBIMeasure))) {
     Util.showError(this, i18n.tr("Error while adding new measure: ") + message, i18n.tr("Error"));
   }
 }
  @Override
  public void actionPerformed(ActionEvent e) {

    String cmd = e.getActionCommand();
    if (cmd == "StandardDialog.OK") {
      if (_tasktypeInput.isSelected()) {
        Integer id = _tasktypeInput.getSelectedId();
        _tasktypeModel.removeTaskType(id.toString());
        _tasktypeComboBoxModel.refresh();
      } else {
        Util.showError(
            this,
            i18n.tr(
                "Could not delete task type. Select one task type first, "
                    + "then click on Remove button."),
            i18n.tr("Error"));
      }
    } else {
      super.actionPerformed(e);
    }
  }
 @Override
 public void operationFailed(DataOperation type, TaskTypeOperation identifier, String message) {
   Util.showError(this, i18n.tr("Could not remove task type: " + message), i18n.tr("Error"));
 }