Closed ideals of operators on generalized James spaces