开发者

How to set camelCase to code generated by code templates in Flash Builder 4.5?

开发者 https://www.devze.com 2023-04-09 14:33 出处:网络
I\'m trying to change the default event handler code generator, so that it generates the nam开发者_Go百科e of the function as onComponentidEventname For example:

I'm trying to change the default event handler code generator, so that it generates the nam开发者_Go百科e of the function as onComponentidEventname For example:

<s:Button id="myButton" 
          click="onMyButtonClick(event)" />

The code template I use is:

${namespace} ${modifiers}function ${:method_name('on${component_id}${event_name}')}(${event}:${event_type}):${return_type}{${cursor}}

But the result is onmyButtonclick instead of onMyButtonClick.

Any ideas if that is possible and how to do that?

Thanks in advance,

Blaze


It's not possible to apply transformations on the code variables...you can submit a feature request if you really need it - go to http://bugs.adobe.com/jira/browse/FB/component/10660 and click on "Feature Request" (you need to be logged in for that).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号