class SequenceGeneratorEditionDialog implements PropertyEditionPopup {

    @Override
    public void show() {

        DataModelerPropertyEditorFieldInfo fieldInfo = (DataModelerPropertyEditorFieldInfo) property;

        String sequenceName = (String) fieldInfo.getCurrentValue(SequenceGeneratorValueHandler.SEQUENCE_NAME);
        String generatorName = (String) fieldInfo.getCurrentValue(SequenceGeneratorValueHandler.NAME);
        Object initialValue = fieldInfo.getCurrentValue(SequenceGeneratorValueHandler.INITIAL_VALUE);
        Object allocationSize = fieldInfo.getCurrentValue(SequenceGeneratorValueHandler.ALLOCATION_SIZE);

        view.setSequenceName(sequenceName);
        view.setGeneratorName(generatorName);
        view.setInitialValue(initialValue != null ? initialValue.toString() : null);
        view.clearInitialValueError();
        view.setAllocationSize(allocationSize != null ? allocationSize.toString() : null);
        view.clearAllocationSizeError();

        view.setEnabled(!fieldInfo.isDisabled());
        view.show();
    }

    @Inject public  SequenceGeneratorEditionDialog(View view);

}