class CSVDataSetEditWorkflow extends DataSetEditWorkflow<CSVDataSetDef, CSVDataSetDefEditor> {

    @Override
    protected void afterFlush() {
        super.afterFlush();
        if (!editor.isUsingFilePath()) {
            dataSetDef.setFilePath(null);
        } else {
            dataSetDef.setFileURL(null);
        }
    }

    @Inject public  CSVDataSetEditWorkflow(final DataSetClientServices clientServices,
                                   final DataSetValidatorProvider validatorProvider,
                                   final SyncBeanManager beanManager,
                                   final Event<SaveRequestEvent> saveRequestEvent,
                                   final Event<TestDataSetRequestEvent> testDataSetEvent,
                                   final Event<CancelRequestEvent> cancelRequestEvent,
                                   final View view);

}