class DataSetProviderTypeWorkflow extends DataSetEditorWorkflow<DataSetDef> {

    void onProviderTypeSelected(@Observes DataSetDefCreationRequestEvent event) {
        PortablePreconditions.checkNotNull("CreateDataSetDefRequestEvent",
                                           event);
        if (event.getContext().equals(providerTypeEditor)) {
            super.saveButtonCommand.execute();
        }
    }

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

}