public static boolean validateTypeName(final Component parent,final TypeManager typeManager,final JTextField name){
  if (validateTypeName(typeManager,name)) {
    return true;
  }
 else {
    CMessageBox.showWarning(parent,String.format("Unable to create empty or existing type."));
    return false;
  }
}

public static boolean validateTypeName ( final Component parent , final TypeManager typeManager , final JTextField name ) { if ( validateTypeName ( typeManager , name ) ) { return true ; } else { CMessageBox . showWarning ( parent , String . format ( "Unable to create empty or existing type." ) ) ; return false ; } }
determines whether the given text field represents a valid type name and that the corresponding does not already exist .
