Continuum effects for the mean-field and pairing properties of weakly bound nuclei