class SequenceGeneratorEditionDialog implements PropertyEditionPopup {

    void onOK() {
        DataModelerPropertyEditorFieldInfo fieldInfo = (DataModelerPropertyEditorFieldInfo) property;
        fieldInfo.clearCurrentValues();
        String generatorName = view.getGeneratorName();
        if (generatorName != null && !generatorName.isEmpty()) {
            fieldInfo.setCurrentValue(SequenceGeneratorValueHandler.NAME, generatorName);
            fieldInfo.setCurrentValue(SequenceGeneratorValueHandler.SEQUENCE_NAME, view.getSequenceName());
            fieldInfo.setCurrentValue(SequenceGeneratorValueHandler.INITIAL_VALUE, getInitialValue());
            fieldInfo.setCurrentValue(SequenceGeneratorValueHandler.ALLOCATION_SIZE, getAllocationSize());
        }

        view.hide();
        if (okCommand != null) {
            okCommand.execute();
        }
    }

    @Inject public  SequenceGeneratorEditionDialog(View view);

}