public interface RefactorListener
重构监听器。
重构的流程是: 1. 计算要移动和更新的事物总数,事物总数也是操作数量的总数。 2. 进行拷贝操作,把原事物拷贝到目标事物。 3. 更新所有的事物对原目标的引用到目标事物,操作可能是更新或未更新。 4. 删除原事物。void onStart(int count)
count
- 可能需要改动的事物总数,包括重构的可以引用路径可能需要变动的。void onCopy(String sourcePath, String targetPath)
sourcePath
- 源路径targetPath
- 目标路径void onDelete(String sourcePath)
sourcePath
- 源路径void onUpdated(String path)
path
- 路径void notMidify(String path)
path
- 路径void finish()
Copyright © 2018 xworker.org. All rights reserved.