only make the handler active when a java editor is open