class FormatController extends BaseSelectedColumnObserver implements TableModelListener {

    @Override
    public void update(Observable o, Object arg)
    {
        super.update(o, arg);
        if (ColumnDefinitionModel.SELECTED_DEFINITION_PROPERTY.equals(arg))
        {
            setPreviousDataType();
            myModel.setAvailableFormats(populateFormats());
        }
        else if (ColumnDefinitionRow.DATA_TYPE_PROPERTY.equals(arg))
        {
            resetFormatIfNeeded();
            setPreviousDataType();
            myModel.setAvailableFormats(populateFormats());
        }
    }

    public  FormatController(PreferencesRegistry preferencesRegistry, ColumnDefinitionModel model);

}