Community
Participate
Working Groups
Build Identifier: M20100211-1343 Sometimes there is a code-type-based lookup call needed that does not just return code texts but rather adapts the code texts, e.g. by adding a certain suffix to the text. Currently, the CodeLookupCall class does not allow subclasses to change or extend the way the cached codes are mapped to lookup rows. Proposal: - new execDecorateCode(..) method that allows subclasses to decorate codes returned by lookup call - new getConfiguredSortComparator() method that allows sorting the codes before lookup rows are created Funktionalität wird in Branches nicht benötigt, Anpassung auf Trunk ist ausreichend. Reproducible: Always Steps to Reproduce: This is an enhancement. No error to reproduce.
Not required on branches, enhancement of trunk is sufficient.
Created attachment 207300 [details] Patch for CodeLookupCall class
The revision of your patch is an old version of the CodeLookupCall class. Please consult the current version, it already contains (resp. contained before)these enhancements: use setFilter to filter the collection of affected codes use execCreateLookupRowsFromCodes to customize the transformation from ICode to LookupRow.
updated target milestone
Created attachment 211794 [details] Patch for CodeLookupCall class
Attached new CodeLookupCall patch based on proposals by Ivan Motsch.
status set to reopened as new patch was attached
Thanks! That code lookg good. Since there change basically 50% of the code in that class, could you please add a junit test that tests whether the behaviour BEFORE the patch (without custom Comparator) is same after (without Comparator). You may create a similar test as the existing /org.eclipse.scout.james.shared/src/org/eclipse/scout/james/shared/tests/lookup/LocalLookupCallTest.java Thanks
updated target milestone to 3.8.1 as this change won't make it for juno at this time
Created attachment 216453 [details] unit test
Thanks for the unit test, i added it to this ticket. Works fine and looks good. I applied to it to 3.8.1
shipped with scout juno sr1