I have written one eclipse osgi plugin that runs cleanup and formatting actions on java files present in eclipse project. Some thing like:
- Run batch file that has eclipse command
- It open's eclipse editor
- Loads eclipse project passed as parameter in batch command
- Run cleanup and formatting actions
- Closes eclipse
Now my problem is I need to track the files that has been changed by this action. I am performing cleanup changes using cleanUpsAction
that runs as thread over multiple files and forks further. It returns void.
There is IResourceChangeListener
which I tried as well but I am not able to get name of resources that are changed. I get object of IResourceChangeEvent
but details of resource are not coming out of it, it always return project name when I prints IResourceChangeEvent.getSource()
.