private boolean checkMultipleColumnsEditorEnabled ( ) { final int size = listEditor . getList ( ) . size ( ) ; if ( size == 2 && ! listEditor . getEditors ( ) . isEmpty ( ) ) { final String cId = listEditor . getEditors ( ) . get ( 0 ) . id ( ) . getValue ( ) ; if ( ! restrictedColumns . contains ( cId ) ) { setEditorEnabled ( 0 , true , null ) ; } return true ; } return false ; }
Checks that if multiple columns are used in data set - > the column editors must be enabed if the columns are not are restricted .