Adapt to changes in master.

See scala-ide/scala-ide#812
I think the whole method should go away..