So, I\'m looking to develop a plugin for Eclipse 4.2 that monitors edits that a user makes to their files.
This is my first Eclipse plugin, and to prepare, I walke
Yes and no. The IResourceChangedListener will trigger once the resource (file) changes. In most editors, this correspond to the user saving the file.
To monitor typing in close to real-time, one approach is to use a MonoReconciler to catch buffer changes after the user has been idle for, say, 0.5 seconds. This is how the JDT works.
Now, this is all easy if you are the creator of the EditorPart. Depending on which editor you wish to monitor, you need to get hold of its IDocument and add listeners as appropriate. See the documentation. For what its worth, IIRC the Java editors use ProjectionDocuments.