'How to make Eclipse align the ?: ternary operator?

I need the exact same effect as in this question but in Eclipse.

It should only do the alignment if I explcitly insert a new line before the ":" or if the second operand (the "true" expression) is too long.

Example:

a = cond ? "a veeeeeeeeeeeeeeeery loooooooooooooooooooooooooooong string"
         : "";
      // ^ put the colon here


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source