Nick-The-Uncharted / tablefilter-swing

Automatically exported from code.google.com/p/tablefilter-swing
1 stars 1 forks source link

AdapativeChoices + CustomChoices + AutoChoices.DISABLED + Enum column -> wrong mix! #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Define the filter header as autoadaptative
2. Set the autoChoices to DISABLED
3. Set the column type to a given enumeration
4. Define specific CustomChoices

What is the expected output? What do you see instead?

The normal output, if all enumeration values are available in the column, would 
be to have all those values PLUS the defined custom choices on the editor's 
combobox

However, only the custom choices, and some of the enumeration values are 
present (one enumeration value missing for each given custom choice)

What version of the product are you using? On what operating system?
4.1.4, XP

Please provide any additional information below.
The problem seems to be on line 629 in AdaptiveChoicesHandler, where it is 
checked if (maxChoices > 0), instead of checking is autoOptions are disabled.

Original issue reported on code.google.com by luismp...@gmail.com on 26 May 2011 at 1:13

GoogleCodeExporter commented 9 years ago

Original comment by coderazzi on 7 Jun 2011 at 3:03

GoogleCodeExporter commented 9 years ago
Indeed, the same problem happens as well if AutoOptions has value Enum and a 
column does not contain an enumeration type.

Original comment by coderazzi on 13 Oct 2011 at 10:08

GoogleCodeExporter commented 9 years ago
Fixed on 4.2.0

Original comment by coderazzi on 10 Nov 2011 at 4:19

GoogleCodeExporter commented 9 years ago

Original comment by coderazzi on 14 Nov 2011 at 11:13