Search in sources :

Example 1 with CvsContextAdapter

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);
}
Also used : CvsContext(com.intellij.cvsSupport2.actions.cvsContext.CvsContext) VirtualFile(com.intellij.openapi.vfs.VirtualFile) File(java.io.File) CvsContextAdapter(com.intellij.cvsSupport2.actions.cvsContext.CvsContextAdapter)

Aggregations

CvsContext (com.intellij.cvsSupport2.actions.cvsContext.CvsContext)1 CvsContextAdapter (com.intellij.cvsSupport2.actions.cvsContext.CvsContextAdapter)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 File (java.io.File)1