class SelectDocumentPopup implements SelectDocumentPopupPresenter {

    @Override
    public void setDocuments(final List<Path> paths) {
        PortablePreconditions.checkNotNull("paths",
                                           paths);
        dispose();
        for (Path path : paths) {
            final SelectableDocumentView document = makeSelectableDocument(path);
            selectableDocuments.add(document);
            view.addDocument(document);
        }
        view.enableOKButton(false);
    }

    @Inject public  SelectDocumentPopup(final SelectDocumentPopupView view,
                               final ManagedInstance<SelectableDocumentView> selectableDocumentProvider);

}