This is an automated email from the git hooks/post-receive script. New commit to branch feature/7586 in repository observe. See http://git.codelutin.com/observe.git commit 54f7e07ed265ede21edc01962a5e20616276cdc4 Author: Kevin Morin <morin@codelutin.com> Date: Tue Oct 6 16:00:38 2015 +0200 fix decorator(refs #7586) --- .../java/fr/ird/observe/ui/DecoratorService.java | 122 ++++++++++----------- 1 file changed, 60 insertions(+), 62 deletions(-) diff --git a/observe-application-swing/src/main/java/fr/ird/observe/ui/DecoratorService.java b/observe-application-swing/src/main/java/fr/ird/observe/ui/DecoratorService.java index 6cc81f0..8bb4dd0 100644 --- a/observe-application-swing/src/main/java/fr/ird/observe/ui/DecoratorService.java +++ b/observe-application-swing/src/main/java/fr/ird/observe/ui/DecoratorService.java @@ -403,7 +403,7 @@ public class DecoratorService extends DecoratorProvider { String libelle = referentialLocale.getLibelle(); registerJXPathDecorator(ProgramDto.class, t("observe.common.program") + - " ${" + libelle + "}$s"); + " ${" + libelle + "}$s"); registerReferenceDtoDecorator(ProgramDto.class, t("observe.common.program") + " ${label}$s"); registerJXPathDecorator(RouteDto.class, "${date}$td/%1$tm/%1$tY"); @@ -412,28 +412,28 @@ public class DecoratorService extends DecoratorProvider { ActivitySeineDto.class, "${time}$tH:%1$tM##${vesselActivitySeine/" + libelle + "}$s", "##", " - "); - registerReferenceDtoDecorator(ActivitySeineDto.class, "${time}$tH:%1$tM##${vesselActivitySeine/" + libelle + "}$s"); + registerReferenceDtoDecorator(ActivitySeineDto.class, "${time}$tH:%1$tM##${vesselActivitySeine}$s"); registerMultiJXPathDecorator( ActivityLonglineDto.class, "${timeStamp}$td/%1$tm/%1$tY %1$tH:%1$tM##${vesselActivityLongline/" + libelle + "}$s", "##", " - "); registerReferenceDtoDecorator(ActivityLonglineDto.class, - "${timeStamp}$td/%1$tm/%1$tY %1$tH:%1$tM##${vesselActivityLongline/" + libelle + "}$s"); + "${timeStamp}$td/%1$tm/%1$tY %1$tH:%1$tM##${vesselActivityLongline}$s"); registerMultiJXPathDecorator(PersonDto.class, "${lastName}$s##${firstName}$s", "##", " "); registerReferenceDtoDecorator(PersonDto.class, "${lastName}$s##${firstName}$s"); - registerDefaultReferenceDtoDecorator(SexDto.class, libelle); + registerDefaultReferenceDtoDecorator(SexDto.class); //FIXME Use startDate - endDate - registerDefaultReferenceDtoDecorator(FpaZoneDto.class, libelle); - registerDefaultReferenceDtoDecorator(OceanDto.class, libelle); - registerDefaultReferenceDtoDecorator(DetectionModeDto.class, libelle); - registerDefaultReferenceDtoDecorator(VesselDto.class, libelle); - registerDefaultReferenceDtoDecorator(CountryDto.class, libelle); + registerDefaultReferenceDtoDecorator(FpaZoneDto.class); + registerDefaultReferenceDtoDecorator(OceanDto.class); + registerDefaultReferenceDtoDecorator(DetectionModeDto.class); + registerDefaultReferenceDtoDecorator(VesselDto.class); + registerDefaultReferenceDtoDecorator(CountryDto.class); registerReferenceDtoDecorator(VesselSizeCategoryDto.class, "${code}$s##${gaugeLabel}$s##${capacityLabel}$s"); - registerDefaultReferenceDtoDecorator(VesselTypeDto.class, libelle); - registerDefaultReferenceDtoDecorator(VesselActivitySeineDto.class, libelle); - registerDefaultReferenceDtoDecorator(SurroundingActivityDto.class, libelle); - registerDefaultReferenceDtoDecorator(ObservedSystemDto.class, libelle); - registerReferenceDtoDecorator(WindDto.class, "${code}$s##${" + libelle + "}$s##${speedRange}$s"); + registerDefaultReferenceDtoDecorator(VesselTypeDto.class); + registerDefaultReferenceDtoDecorator(VesselActivitySeineDto.class); + registerDefaultReferenceDtoDecorator(SurroundingActivityDto.class); + registerDefaultReferenceDtoDecorator(ObservedSystemDto.class); + registerReferenceDtoDecorator(WindDto.class, "${code}$s##${label}$s##${speedRange}$s"); registerMultiJXPathDecorator( FloatingObjectDto.class, "DCP ${objectType/" + libelle + "}$s", "##", " - "); @@ -442,49 +442,49 @@ public class DecoratorService extends DecoratorProvider { registerJXPathDecorator(SetSeineDto.class, t("observe.common.setSeine")); //FIXME Remove this registerJXPathDecorator(SetLonglineDto.class, t("observe.common.setLongline")); - registerDefaultReferenceDtoDecorator(ObjectFateDto.class, libelle); - registerDefaultReferenceDtoDecorator(OrganismDto.class, libelle); - registerDefaultReferenceDtoDecorator(ObjectTypeDto.class, libelle); - registerDefaultReferenceDtoDecorator(ObjectOperationDto.class, libelle); - registerDefaultReferenceDtoDecorator(SpeciesStatusDto.class, libelle); - registerDefaultReferenceDtoDecorator(TransmittingBuoyTypeDto.class, libelle); - registerDefaultReferenceDtoDecorator(TransmittingBuoyOperationDto.class, libelle); - registerDefaultReferenceDtoDecorator(ReasonForNullSetDto.class, libelle); - registerDefaultReferenceDtoDecorator(ReasonForNoFishingDto.class, libelle); - registerDefaultReferenceDtoDecorator(WeightCategoryDto.class, libelle); - registerDefaultReferenceDtoDecorator(ReasonForDiscardDto.class, libelle); - registerDefaultReferenceDtoDecorator(SpeciesFateDto.class, libelle); - registerDefaultReferenceDtoDecorator(SpeciesGroupDto.class, libelle); - registerDefaultReferenceDtoDecorator(SpeciesListDto.class, libelle); - - registerDefaultReferenceDtoDecorator(BaitHaulingStatusDto.class, libelle); - registerDefaultReferenceDtoDecorator(BaitSettingStatusDto.class, libelle); - registerDefaultReferenceDtoDecorator(BaitTypeDto.class, libelle); - registerDefaultReferenceDtoDecorator(CatchFateLonglineDto.class, libelle); - registerDefaultReferenceDtoDecorator(EncounterTypeDto.class, libelle); - registerDefaultReferenceDtoDecorator(HealthnessDto.class, libelle); - registerDefaultReferenceDtoDecorator(HookPositionDto.class, libelle); - registerDefaultReferenceDtoDecorator(HookSizeDto.class, libelle); - registerDefaultReferenceDtoDecorator(HookTypeDto.class, libelle); - registerDefaultReferenceDtoDecorator(ItemVerticalPositionDto.class, libelle); - registerDefaultReferenceDtoDecorator(ItemHorizontalPositionDto.class, libelle); - registerDefaultReferenceDtoDecorator(LightsticksColorDto.class, libelle); - registerDefaultReferenceDtoDecorator(LightsticksTypeDto.class, libelle); - registerDefaultReferenceDtoDecorator(LineTypeDto.class, libelle); - registerDefaultReferenceDtoDecorator(MaturityStatusDto.class, libelle); - registerDefaultReferenceDtoDecorator(MitigationTypeDto.class, libelle); + registerDefaultReferenceDtoDecorator(ObjectFateDto.class); + registerDefaultReferenceDtoDecorator(OrganismDto.class); + registerDefaultReferenceDtoDecorator(ObjectTypeDto.class); + registerDefaultReferenceDtoDecorator(ObjectOperationDto.class); + registerDefaultReferenceDtoDecorator(SpeciesStatusDto.class); + registerDefaultReferenceDtoDecorator(TransmittingBuoyTypeDto.class); + registerDefaultReferenceDtoDecorator(TransmittingBuoyOperationDto.class); + registerDefaultReferenceDtoDecorator(ReasonForNullSetDto.class); + registerDefaultReferenceDtoDecorator(ReasonForNoFishingDto.class); + registerDefaultReferenceDtoDecorator(WeightCategoryDto.class); + registerDefaultReferenceDtoDecorator(ReasonForDiscardDto.class); + registerDefaultReferenceDtoDecorator(SpeciesFateDto.class); + registerDefaultReferenceDtoDecorator(SpeciesGroupDto.class); + registerDefaultReferenceDtoDecorator(SpeciesListDto.class); + + registerDefaultReferenceDtoDecorator(BaitHaulingStatusDto.class); + registerDefaultReferenceDtoDecorator(BaitSettingStatusDto.class); + registerDefaultReferenceDtoDecorator(BaitTypeDto.class); + registerDefaultReferenceDtoDecorator(CatchFateLonglineDto.class); + registerDefaultReferenceDtoDecorator(EncounterTypeDto.class); + registerDefaultReferenceDtoDecorator(HealthnessDto.class); + registerDefaultReferenceDtoDecorator(HookPositionDto.class); + registerDefaultReferenceDtoDecorator(HookSizeDto.class); + registerDefaultReferenceDtoDecorator(HookTypeDto.class); + registerDefaultReferenceDtoDecorator(ItemVerticalPositionDto.class); + registerDefaultReferenceDtoDecorator(ItemHorizontalPositionDto.class); + registerDefaultReferenceDtoDecorator(LightsticksColorDto.class); + registerDefaultReferenceDtoDecorator(LightsticksTypeDto.class); + registerDefaultReferenceDtoDecorator(LineTypeDto.class); + registerDefaultReferenceDtoDecorator(MaturityStatusDto.class); + registerDefaultReferenceDtoDecorator(MitigationTypeDto.class); registerReferenceDtoDecorator(SensorBrandDto.class, "${code}$s##${brandName}$s"); - registerDefaultReferenceDtoDecorator(SensorDataFormatDto.class, libelle); - registerDefaultReferenceDtoDecorator(SensorTypeDto.class, libelle); - registerDefaultReferenceDtoDecorator(SettingShapeDto.class, libelle); - registerDefaultReferenceDtoDecorator(SizeMeasureTypeDto.class, libelle); - registerDefaultReferenceDtoDecorator(StomacFullnessDto.class, libelle); - registerDefaultReferenceDtoDecorator(TripTypeDto.class, libelle); - registerDefaultReferenceDtoDecorator(VesselActivityLonglineDto.class, libelle); - registerDefaultReferenceDtoDecorator(WeightMeasureTypeDto.class, libelle); - registerDefaultReferenceDtoDecorator(GearCaracteristicTypeDto.class, libelle); - registerDefaultReferenceDtoDecorator(GearCaracteristicDto.class, libelle); - registerDefaultReferenceDtoDecorator(GearDto.class, libelle); + registerDefaultReferenceDtoDecorator(SensorDataFormatDto.class); + registerDefaultReferenceDtoDecorator(SensorTypeDto.class); + registerDefaultReferenceDtoDecorator(SettingShapeDto.class); + registerDefaultReferenceDtoDecorator(SizeMeasureTypeDto.class); + registerDefaultReferenceDtoDecorator(StomacFullnessDto.class); + registerDefaultReferenceDtoDecorator(TripTypeDto.class); + registerDefaultReferenceDtoDecorator(VesselActivityLonglineDto.class); + registerDefaultReferenceDtoDecorator(WeightMeasureTypeDto.class); + registerDefaultReferenceDtoDecorator(GearCaracteristicTypeDto.class); + registerDefaultReferenceDtoDecorator(GearCaracteristicDto.class); + registerDefaultReferenceDtoDecorator(GearDto.class); registerReferenceDtoDecorator(HarbourDto.class, "${code}$s##${name}$s##${locode}$s"); @@ -529,15 +529,13 @@ public class DecoratorService extends DecoratorProvider { // TripSeine decorator registerDecorator(new TripSeineDecorator(libelle)); registerReferenceDtoDecorator(TripSeineDto.class, - "${startDate}$td/%1$tm/%1$tY##${endDate}$td/%2$tm/%2$tY##${vessel/" - + libelle + "}$s##${observerLabel}$s"); + "${startDate}$td/%1$tm/%1$tY##${endDate}$td/%2$tm/%2$tY##${vessel}$s##${observer}$s"); // TripLongline decorator registerDecorator(new TripLonglineDecorator(libelle)); registerReferenceDtoDecorator(TripLonglineDto.class, - "${startDate}$td/%1$tm/%1$tY##${endDate}$td/%2$tm/%2$tY##${vessel/" - + libelle + "}$s##${observerLabel}$s"); + "${startDate}$td/%1$tm/%1$tY##${endDate}$td/%2$tm/%2$tY##${vessel}$s##${observer}$s"); String oldCode = l(locale, "observe.common.oldCode3L"); // Species decorator @@ -577,8 +575,8 @@ public class DecoratorService extends DecoratorProvider { } - protected <T extends IdDto> void registerDefaultReferenceDtoDecorator(Class<T> referenceType, String libelle) { - registerReferenceDtoDecorator(referenceType, "${code}$s##${" + libelle + "}$s"); + protected <T extends IdDto> void registerDefaultReferenceDtoDecorator(Class<T> referenceType) { + registerReferenceDtoDecorator(referenceType, "${code}$s##${label}$s"); } protected <T extends IdDto> void registerReferenceDtoDecorator(Class<T> referenceType, String expression) { -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.