private boolean checkClassNameUnique(PojoDescriptor pojo,String newVal,boolean key){
  for (  PojoDescriptor otherPojo : pojos)   if (pojo != otherPojo) {
    String otherKeyCls=otherPojo.keyClassName();
    String otherValCls=otherPojo.valueClassName();
    if (newVal.equals(otherKeyCls) || newVal.equals(otherValCls)) {
      MessageBox.warningDialog(owner,(key ? "Key" : "Value") + " class name must be unique!");
      return false;
    }
  }
  return true;
}

private boolean checkClassNameUnique ( PojoDescriptor pojo , String newVal , boolean key ) { for ( PojoDescriptor otherPojo : pojos ) if ( pojo != otherPojo ) { String otherKeyCls = otherPojo . keyClassName ( ) ; String otherValCls = otherPojo . valueClassName ( ) ; if ( newVal . equals ( otherKeyCls ) || newVal . equals ( otherValCls ) ) { MessageBox . warningDialog ( owner , ( key ? "Key" : "Value" ) + " class name must be unique!" ) ; return false ; } } return true ; }
check if new class name is unique .
