[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[platform-vcm-dev] validateEdit refresh problem
|
Title: validateEdit refresh problem
Hi everyone,
I posted the message below to the Eclipse newsgroup. Someone responded saying that it was most likely a bug and that I should fill out a bug report. I'm not quite convinced that this is a bug though, and I wanted to know if anyone has had a problem with this, and if so, what is the work-around. I'd bet I'm just missing an API call.
What I have is a class that implements the IFileModificationValidator interface that we all know. I have created a validateEdit method() that checks if the file is read only, and if so, checks it out.
This works great except every time a file is checked out I get a question dialog with this message: "The file has been changed on the local file system. Do you want to load the changes?"
Of course the answer to this question is always going to be yes. Is there any way to make it so that dialog does not pop up? I need everything to be in the background and, as I said, in this case the answer is always yes, with no exceptions. I tried calling the refresh() method on all of the files, but it didn't seem to help for some reason.
Does anyone have any clues?
Thanks in advance,
Joe