branch feature/refactor_reference updated (163a4e6 -> 9539790)
This is an automated email from the git hooks/post-receive script. New change to branch feature/refactor_reference in repository observe. See http://git.codelutin.com/observe.git from 163a4e6 Chargement des référentiels dans les modèles des écrans de l'application swing new 9539790 Récupération de la liste des catégories de poids à partir d'une espèce The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 95397902ab4624940fb79ead2ca41ca75fa51a0e Author: Tony CHEMIT <chemit@codelutin.com> Date: Sun Nov 29 20:41:59 2015 +0100 Récupération de la liste des catégories de poids à partir d'une espèce Summary of changes: .../fr/ird/observe/ui/content/table/ContentTableUIHandler.java | 10 ++++++++-- .../ui/content/table/impl/seine/TargetCatchUIHandler.java | 1 - 2 files changed, 8 insertions(+), 3 deletions(-) -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/refactor_reference in repository observe. See http://git.codelutin.com/observe.git commit 95397902ab4624940fb79ead2ca41ca75fa51a0e Author: Tony CHEMIT <chemit@codelutin.com> Date: Sun Nov 29 20:41:59 2015 +0100 Récupération de la liste des catégories de poids à partir d'une espèce --- .../fr/ird/observe/ui/content/table/ContentTableUIHandler.java | 10 ++++++++-- .../ui/content/table/impl/seine/TargetCatchUIHandler.java | 1 - 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/observe-application-swing/src/main/java/fr/ird/observe/ui/content/table/ContentTableUIHandler.java b/observe-application-swing/src/main/java/fr/ird/observe/ui/content/table/ContentTableUIHandler.java index 8312d2d..3adff44 100644 --- a/observe-application-swing/src/main/java/fr/ird/observe/ui/content/table/ContentTableUIHandler.java +++ b/observe-application-swing/src/main/java/fr/ird/observe/ui/content/table/ContentTableUIHandler.java @@ -474,7 +474,12 @@ public abstract class ContentTableUIHandler<E extends IdDto, D extends IdDto> ex Set<ReferentialReference<WeightCategoryDto>> allCategories = getModel().getReferentialReferences(TargetCatchDto.PROPERTY_WEIGHT_CATEGORY); - return Lists.newArrayList(Iterables.filter(allCategories, new WeightCategorySpeciesPredicate(speciesId))); + List<ReferentialReference<WeightCategoryDto>> references = Lists.newArrayList(Iterables.filter(allCategories, new WeightCategorySpeciesPredicate(speciesId))); + + if (log.isInfoEnabled()) { + log.info("Found " + references.size() + " categories for species: " + speciesId); + } + return references; } @@ -488,7 +493,8 @@ public abstract class ContentTableUIHandler<E extends IdDto, D extends IdDto> ex @Override public boolean apply(ReferentialReference<WeightCategoryDto> input) { - return speciesId.equals(input.getPropertyValue(WeightCategoryDto.PROPERTY_SPECIES)); + ReferentialReference<SpeciesDto> speciesReference = (ReferentialReference<SpeciesDto>) input.getPropertyValue(WeightCategoryDto.PROPERTY_SPECIES); + return speciesId.equals(speciesReference.getId()); } } diff --git a/observe-application-swing/src/main/java/fr/ird/observe/ui/content/table/impl/seine/TargetCatchUIHandler.java b/observe-application-swing/src/main/java/fr/ird/observe/ui/content/table/impl/seine/TargetCatchUIHandler.java index 76b6420..06810be 100644 --- a/observe-application-swing/src/main/java/fr/ird/observe/ui/content/table/impl/seine/TargetCatchUIHandler.java +++ b/observe-application-swing/src/main/java/fr/ird/observe/ui/content/table/impl/seine/TargetCatchUIHandler.java @@ -247,7 +247,6 @@ public class TargetCatchUIHandler extends ContentTableUIHandler<SetSeineTargetCa UIHelper.setTableColumnRenderer(table, 4, UIHelper.newStringTableCellRenderer(renderer, 10, true)); } - @SuppressWarnings("unchecked") protected void onSpeciesChanged(ReferentialReference<SpeciesDto> species) { List<ReferentialReference<WeightCategoryDto>> availableCategories; -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
participants (1)
-
codelutin.com scm