protected SelectFilesDialog( Project project, List<VirtualFile> originalFiles, String prompt, VcsShowConfirmationOption confirmationOption, boolean selectableFiles, boolean showDoNotAskOption, boolean deletableFiles) { super(project, false, confirmationOption, prompt, showDoNotAskOption); myDeletableFiles = deletableFiles; myFileList = new VirtualFileList(project, originalFiles, selectableFiles, deletableFiles); myFileList.setChangesToDisplay(originalFiles); }
public void setSelectedFiles(@NotNull final Collection<VirtualFile> selected) { myFileList.setIncludedChanges(selected); }
public Collection<VirtualFile> getSelectedFiles() { return myFileList.getIncludedChanges(); }