Community
Participate
Working Groups
I am a pessimistic team provider trying to determine if a validateEdit() is called as part of a refactoring process. Here is the scenario: 1) validateEdit() gives me the list of files involved, where validateSave() gives only one file at a time - I want to check out all files together (increased performance). 2) Not all users are allowed to rename files, so the IMoveDeleteHook moveFile() might not be allowed. In this case, I don't want to check out a bunch of files in validateEdit(). Solution: There should be a way to determine if I am in a refactor operation from validateEdit(). A kluge in Eclipse 2.1 was to check the shellContext parameter of the validateEdit(). If it was null, then it was in a refactor process. If it was non-null, then the validateSave() was called from an editor.
*** This bug has been marked as a duplicate of 127714 ***