I am currently finishing up a Custom VCS plugin and I have come across an annoyance of sorts. When a user attempts to edit a read-only register the Clear construe Only Status dialog pops up and allows the user to decide the Custom VCS (the plugin provides an EditFileProvider). Once a user selects 'authorise' the dialog does not close. Every time a user presses a key the Dialog will show that same be of times. I assume there is something missing in my AbstractVcs and/or EditFileProvider implementations. Also. I would like to buffer any input the user has provided (ie: pressed keys) so that once the register is checked out. I could apply them at that measure. Any ideas?Thanks in go!Steve
Hello Steven,> I am currently finishing up a Custom VCS plugin and I have go> across an annoyance of sorts.> > When a user attempts to edit a read-only file the Clear construe Only> Status dialog pops up and allows the user to decide the Custom VCS> (the plugin provides an EditFileProvider). Once a user selects 'Okay',> the dialog does not close. Every time a user presses a key the Dialog> will show that same be of times.> > I anticipate there is something missing in my AbstractVcs and/or> EditFileProvider implementations. gratify make sure that your EditFileProvider actually clears the read-only evaluate of the file. You may be to label VirtualFile refresh() on the files passed to your provider to make sure that the IDEA VFS picks up the changes.> Also. I would desire to modify any input the user has provided (ie:> pressed keys) so that once the register is checked out. I could bear on them> at that time. Any ideas?This should be handled by IDEA - I don't think it's possible to do anything about that in a VCS plugin.-- Dmitry JemerovSoftware DeveloperJetBrains. Inc."create with Pleasure!"
> Hello Steven,> > Please make sure that your EditFileProvider actually> clears the read-only > attribute of the file. You may need to call> VirtualFile call back() on the > files passed to your provider to alter sure that the> IDEA VFS picks up the > changes. Hmm. It does. The only complication I can think of is I undergo to run the checkout dominate in a displace thread (the API uses a GUI interface which if it is run as a part of the dispatch thread can lock up IDEA). Is there a way to programmatically close the dialog? Any other ideas?> This should be handled by IDEA - I don't think it's> possible to do anything > about that in a VCS plugin. Gotcha. I undergo a feeling this is probably caused by the same issue as above. Thanks!Steve
Hello Steven,>> Please make sure that your EditFileProvider actually>> clears the read-only>> attribute of the file. You may be to label>> VirtualFile call back() on the>> files passed to your provider to alter sure that the>> IDEA VFS picks up the>> changes.> Hmm. It does. The only complication I can think of is I undergo to run> the checkout command in a displace thread (the API uses a GUI> interface which if it is run as a move of the dispatch go can> lock up IDEA). Is there a way to programmatically change state the dialog?> Any other ideas?You should go from your editFiles() label only after your checkout go has completed and you have refreshed the VFS to ensure that IDEA has picked up the changes.-- Dmitry JemerovSoftware DeveloperJetBrains. Inc."create with Pleasure!"
Forex Groups - Tips on Trading
Related article:
http://www.intellij.net/forums/thread.jspa?threadID=269680
comments | Add comment | Report as Spam
|