ICE IT ICE IT ICE IT!
No massage or creams for at least a week, or until swelling subsides. No alcohol for 48h. No hot packs or hot baths. No stretching for at least a week. (Although in your case, being a dancer, I am assuming that you are quite flexible and is impt to maintain some degree of flexibility - so I sometimes suggest to my dancers, that they go sit with their backs against the wall with both legs out straight in front of them, so their hips are bent at right angles to the wall - only IF in this position, they are NOT getting a real pull on the sore spot of the hamstring, only a little little pull or stretch if that. Hold the sitting position for 10-15s only, then relax. If even this position makes the swelling or pain worse, then dont do it).
Also possible can do some gentle plies but only in closed positions such as first or third (avoid fifth, too tight) - try some demi-plies first. Should be able to do rises, but dont zip up the knees too tight. Vary your degree of turn-out (basically want to avoid full turn out if it starts to hurt the tear spot).
Keep a tubigrip over the knee/ thigh for compression and support but dont use a leg warmer over it - avoid heating up area.
Its always hard to give cyber advice without an examination - so do take all advice here carefully.
Ibuprofen - can continue until swelling subsides. But bear in mind that it is a pain-killer, so dont overdo the activities as you may not have protective pain.
With the ice - frozen veges always does the trick, but any sports ice pack will also do. Just be careful of ice-burns - dont leave it on for more than 20 mins (but if you cant tolerate 20 mins, just however long you can manage) - apply every 2-4hs for next 48h.
Good luck.