use of com.intellij.cvsSupport2.actions.cvsContext.CvsContextAdapter in project intellij-community by JetBrains.
the class DeleteHandler method removeFiles.
private void removeFiles() {
for (File file : myFilesToDeleteEntry) {
if (!file.exists()) {
CvsUtil.removeEntryFor(file);
}
}
if (myDeletedFiles.isEmpty())
return;
for (String s : myDeletedFiles) {
FileUtil.delete(new File(s));
}
final CvsContext context = new CvsContextAdapter() {
public Project getProject() {
return myProject;
}
public Collection<String> getDeletedFileNames() {
return myDeletedFiles;
}
};
RemoveLocallyFileOrDirectoryAction.createAutomaticallyAction().setAutoSave(false).actionPerformed(context);
}
Aggregations