How to add IResourceChangeListener in eclipse plugin?

前端 未结 1 1257
隐瞒了意图╮
隐瞒了意图╮ 2021-01-27 03:44

I am trying to add IResourceChangeListener in my eclipse plugin, using following tutorial:

https://eclipse.org/articles/Article-Resource-deltas/resource-deltas.html

相关标签:
1条回答
  • 2021-01-27 04:11

    There are 2 ways to do this.

    1. Write your own class by implementing IResourceChangeListener. This will provide fine control.
    2. Use below code

    workspace.addResourceChangeListener(listener,IResourceChangeEvent.POST_CHANGE|IResourceChangeEvent.PRE_BUILD);

    0 讨论(0)
提交回复
热议问题