class FormatController extends BaseSelectedColumnObserver implements TableModelListener {

    private void saveCurrentFormat()
    {
        ColumnDefinitionRow selCol = getSelectedColumn();
        if (selCol == null)
        {
            return;
        }
        String type = selCol.getDataType();
        String fmt = selCol.getFormat();
        if (type == null || type.isEmpty() || fmt == null || fmt.isEmpty())
        {
            return;
        }
        CellFormatter formatter = new CellFormatterFactory().getFormatter(ColumnType.fromString(type), myPreferencesRegistry);
        if (formatter instanceof CellFormatSaver)
        {
            ((CellFormatSaver)formatter).saveNewFormat(fmt);
        }
    }

    public  FormatController(PreferencesRegistry preferencesRegistry, ColumnDefinitionModel model);

}