According to AZ Nomad :
Depends on the plastic. Model airplane glue is little more than polystyrene dissolved in acetone to give it some body. If your shelving is polystyrene (good chance), either acetone or model airplane glue will work more or less the same, and model airplane glue is easier to work with - won't dribble all over the place. Just get fresh stuff - semi-congealed stuff won't work...
However, not all plastics are polystyrene. Acetone won't do a thing to polyethylene for example. Essentially nothing will. Some plastics just don't "glue". The "slippery ones" generally don't, no matter what you use.