ref #8047: add preference for number of visible status in drop down - check in cell...
authorKatja Luther <k.luther@bgbm.org>
Thu, 27 Feb 2020 11:53:21 +0000 (12:53 +0100)
committerKatja Luther <k.luther@bgbm.org>
Thu, 27 Feb 2020 11:53:21 +0000 (12:53 +0100)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/StatusDataCellEditor.java

index f67f48b6b69a4a05a5e0dc2a984f03f72de81df5..ececd753319f7def40a6350d2f22ac4c3f4bc49b 100755 (executable)
@@ -23,6 +23,8 @@ import eu.etaxonomy.cdm.api.service.dto.TaxonDistributionDTO;
 import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
 import eu.etaxonomy.cdm.model.description.Distribution;
 import eu.etaxonomy.cdm.model.location.NamedArea;
+import eu.etaxonomy.cdm.model.metadata.PreferencePredicate;
+import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
 
 /**
  * @author k.luther
@@ -39,7 +41,7 @@ public class StatusDataCellEditor extends ComboBoxCellEditor {
         this.editor = editor;
         setUseCheckbox(false);
         setMultiselect(false);
-        maxVisibleItems = 10;
+        maxVisibleItems = PreferencesUtil.getIntValue(PreferencePredicate.NumberOfVisibleStatusInDropDown.getKey(), false);
 
     }