ResourceTracking and IResourceDeltaVisitor
来源:互联网 发布:mac玩手游问道 编辑:程序博客网 时间:2024/06/06 17:31
Any change taking place in IResource will invoke the IResource Tracking. It may be caused by mannual operation like adding/remove/rename file by mouse, or eclipse operation like building.
- Register resourceChangedListener
- find IResourceDelta
Each IResourceDelta is tree node, which represents a IResource
- Filter the type (Eclipse Platform Level)
This part of work is proceed in resourceChanged(IResourceChangeEvent event) method which is only method of IResourceChangeListener interface
- Find IResourceDeltaevent.getDelta() return the root of resourceDelta. Generally, it represents the project where the change takes place.
- Filter the type (Eclipse Platform Level)
Traverse resourceDelta(Eclipse project level)
This part of work is prcessed in visit(IResourceDelta delta)method, which is the only method of IResourceDeltaVisitor interface, we can set the return value which is boolean to notify whether the traversaling proceeds. visit will be invoked whenever traversal meets a IResourceDelta. so we need to hander all types of IResource.sometime we are only interested in certain kinds of changes lick content change, we can achieve it by following wayIn a word, comapred to resourceChanged(IResourceChangeEvent event), visitor focus on the things taking place during the traversal process. Besides that, each traversed node is below the visitor caller which is a IResourceDelta also .
- ResourceTracking and IResourceDeltaVisitor
- " and '
- $* and $@
- AND
- AND
- & and &&
- ""and ‘’
- GetMessage () and PeekMessage () and SendMessage () and PostMessage ()
- eval and $()/``and typeset and xargs
- # and #line and __FILE__ and __LINE__
- 这样的东东怎么翻译:and and and And?
- Metalearning and ...?
- .And
- between...and
- 初学and
- '&' and '*' (C++)?
- and or
- grep && and ||
- 设计模式 – 单例模式(Singleton)
- POJ 1125 Stockbroker Grapevine
- 设计模式 – 装饰模式(Decorator)
- sql server 2000 递归操作方法
- 总们的艺术
- ResourceTracking and IResourceDeltaVisitor
- 我的博客,我的技术生活
- ubuntu 右键加入打开终端功能
- C语言基础之指针取地址问题
- ado.net 分布式事务处理示例,及微软官方示例
- 反射简单入门教程
- 如何设置快速启动栏 win7 快速启动栏 快速启动栏不见了
- 设计模式 – 简单工厂模式(Factory)
- 命令行下的编辑工具 Vim