I\'m trying to put in a feature that I miss from Eclipse, where Alt+[Up/Down] transposes the lines up or down, but can not for the life of m
Assuming you have the functions transpose-line-up and transpose-line-down already defined (as it seems to be from the example code in your original question):
transpose-line-up
transpose-line-down
(global-set-key [(meta up)] 'transpose-line-up) (global-set-key [(meta down)] 'transpose-line-down)