BZ-1009846: modified java editor (it is no longer possible to change the visualized code).
(cherry-picked from 17e68c4)