refactor ----CopyParticipant failed problem [message #510755] |
Thu, 28 January 2010 09:45  |
Eclipse User |
|
|
|
I have a class extends org.eclipse.ltk.core.refactoring.participants.CopyParticipan t class.
so there will be three method in my class. they are :
protected boolean initialize(Object element) {}
public RefactoringStatus checkConditions(IProgressMonitor pm,CheckConditionsContext context){}
public Change createChange(IProgressMonitor pm){}
Everything seems Ok if I copy a file to another folder, that means my own code in three methods above can be executed.
the problem is that my code can't be executed if I want to copy and paste a file to the same folder. in this case, there will be a Name conflict dialog which we need to input a new file name, then the paste action will finish without entering my CopyParticipant, even the initialize method in my class is skipping, this is very confused.
the eclipse version is 3.2.2.
Any one can give me some comment about this?
thanks,
ping
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.18297 seconds