Use VCS API to check out a file Permanently deleted user Created September 17, 2005 00:40 I would like to check out a file that's in the current project if it has not be checkout already. How can I use the VCS api to do that?Thanks,-Wei
Hello Wei,
WY> I would like to check out a file that's in the current project if it
WY> has not be checkout already. How can I use the VCS api to do that?
VirtualFile fileToCheckOut;
AbstractVcs vcs = ProjectLevelVcsManager.getInstance(myProject).getVcsFor(fileToCheckOut);
if (vcs == null) return;
EditFileProvider provider = vcs.getEditFileProvider();
if (provider == null) return;
provider.editFiles(new VirtualFile[] );
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"
Hi,
I am doing this and when I want to write to the file it is writable false...
What could be the reason for this (I use Iltellij 5 API)
Thanks.