private void adjustOptionsColumn ( CmsMessageBundleEditorTypes . EditMode oldMode , CmsMessageBundleEditorTypes . EditMode newMode ) { if ( m_model . isShowOptionsColumn ( oldMode ) != m_model . isShowOptionsColumn ( newMode ) ) { m_table . removeGeneratedColumn ( TableProperty . OPTIONS ) ; if ( m_model . isShowOptionsColumn ( newMode ) ) { // Don't know why exactly setting the filter field invisible is necessary here, // it should be already set invisible - but apparently not setting it invisible again // will result in the field being visible. m_table . setFilterFieldVisible ( TableProperty . OPTIONS , false ) ; m_table . addGeneratedColumn ( TableProperty . OPTIONS , m_optionsColumn ) ; } } }
Show or hide the options column dependent on the provided edit mode .