[C2-devel] [JIRA][Carrot2] Reopened: (CARROT-385) ValueList constraint and its editor.
Brought to you by:
dawidweiss,
stachoo
From: Stanislaw O. (JIRA) <daw...@cs...> - 2008-09-28 19:02:07
|
[ http://issues.carrot2.org/browse/CARROT-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stanislaw Osinski reopened CARROT-385: -------------------------------------- After a quick discussion we decided that the @ValueHintEnum constraint should always be in non-strict mode, for strict hints, we can simply use Enums. An enum workbench editor, if an attribute is not @Required, should allow empty values. > ValueList constraint and its editor. > ------------------------------------ > > Key: CARROT-385 > URL: http://issues.carrot2.org/browse/CARROT-385 > Project: Carrot2 > Issue Type: Improvement > Components: Eclipse browser, Filter components > Reporter: Dawid Weiss > Assignee: Dawid Weiss > Priority: Minor > Fix For: 3.0 > > > On several occasions I had unrestricted String attributes that could use a predefined set of values (hints). This could be realized as a constraint of the form: > @ValueList([? extends Enum<?>].class valueSet, Boolean strict) > public String attribute; > This constraint would check (in strict mode) if the given value has one of the enum values from valueSet. In non-strict mode, the constraint serves only to populate an editable combo box with possible value hints (specialized editor). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.carrot2.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |