GRECLIPSE-1773 Possible fix

This seems a random patch to put into the JDT patch. Recall that without guards this will affect all Java projects too! If there really is no other way to fix it then you at least need to have a cheap check here to say 'am I a groovy eclipse project?' possibly even going as far as to check the errors are groovy errors (have the groovy prefix).