[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-5687) Improve Decode Param support

Tom Fennelly (JIRA) jira-events at lists.jboss.org
Wed Jan 20 04:04:47 EST 2010


    [ https://jira.jboss.org/jira/browse/JBIDE-5687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12507128#action_12507128 ] 

Tom Fennelly commented on JBIDE-5687:
-------------------------------------

Hi Dart....

Regarding #2... for now we'll need to create a static Map of some sort inside the editor code.  In future, I hope to add this info as annotations on the DataDecoder impls.

As I was thinking about it, the Map would be keyed by the DataDecoder type, with the values being the names of the decodeParams supported by it (including default vals).

So perhaps something like....
class DecodeParamValueConfig {
    String name;
    String defaultVal;
}

static Map<Class<DataDecoder>, DecodeParamValueConfig[]> decodeParamsConfig = new HashMap<Class<DataDecoder>, DecodeParamValueConfig[]>();

static {
    decodeParamsConfig.put(DateDecoder.class, new DecodeParamValueConfig[] {new DecodeParamValueConfig(...), new DecodeParamValueConfig(...)})
    decodeParamsConfig.put(CalendarDecoder.class, ....
}

> Improve Decode Param support
> ----------------------------
>
>                 Key: JBIDE-5687
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-5687
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: smooks
>    Affects Versions: 3.1.0.CR1
>            Reporter: Tom Fennelly
>            Assignee: Tom Fennelly
>            Priority: Blocker
>             Fix For: 3.1.0.CR2
>
>
> The editor supports decode parameter config through a properties sheet activated by selecting the bean property.  However, at the moment, the user needs to know the names of the decode params relevant to the decoder being used to decode the data for that specific binding.
> Would make a big difference to the user (and shouldn't be too difficult to add) if the editor automatically provided the decode params relevant to the binding.  Also... make the decode params the appear by default, when you select the properties of a bean property.  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list