title: Eclipse: Perform an action any time an editor receives input
body: <p>I'm wondering if it is possible to determine what input was just entered inside of an editor in Eclipse - I'm currently working off of the example JDT editor - and then perform an action based on that input.</p>
  
  <p>e.g.: I have a file example.jav open in my editor window. I push the 'a' key. 'a' would appear in the editor window per normal, but 'a' would also print out to the console.</p>
  
  <p>Obviously the operation I'll be performing will be more complicated than a System.out.println() statement, but if someone could help show me where the change gets detected by the editor itself, I can take it from there.</p>
  
  <p>A few notes:</p>
  
  <ul>
  <li>I'm working in Eclipse 3.7.2 with Java 1.7</li>
  <li>If you cannot find the JDT example editor, go to Help > Welcome > Samples and click on "Java Editor".</li>
  </ul>
  
  <p>Thanks in advance!</p>