I actually put ID_CU_EDITOR in under a different PR, but didn't actually test it.  I think though, that you are right that we should not tie directly into java stuff here, and should instead do any language-specific code behind a service interface so, if needed, coffeescript, closure and friends can have their own service to point to their own editors / language features.