2015-10-29 138 views

回答

0

IRefactoringHistoryService接口有訪問重構歷史記錄的方法。

獲取與接口:

IRefactoringHistoryService service = RefactoringCore.getHistoryService(); 

然後,您可以使用得到歷史的一個項目:

IProject project = ... project you are interested in 

RefactoringHistory history = service.getProjectHistory(project, progressMonitor); 

有哪些讓你的工作空間的歷史,並指定啓動其他方法並結束時間戳。

歷史對象可以返回表示重構對象的數組:

RefactoringDescriptorProxy [] proxies = history.getDescriptors(); 

你可以從代理實際的重構描述:

RefactoringDescriptor desc = proxy.getDescription(); 
+0

謝謝@格雷格-449 我嘗試過,它的工作 – myNameIsAlwaysTaken

相關問題