|
Very nice feature... Thanks so much Adrian!
-- Kind Regards Ashish Vijaywargiya HotWax Media - est. 1997 ApacheCon US 2013 Gold Sponsor http://na.apachecon.com/sponsors/ On Tuesday 04 June 2013 03:22 PM, [hidden email] wrote: > Author: adrianc > Date: Tue Jun 4 09:52:10 2013 > New Revision: 1489362 > > URL: http://svn.apache.org/r1489362 > Log: > New feature: Convert an XSD file to Java source code. The feature creates immutable Java object models that represent the XML file defined by the schema. It supports an optional Visitor implementation. > > The feature can be accessed in Web Tools by clicking on the XSD to Java link. > > The Java source code is displayed in a text area - where it can be copied-and-pasted to your IDE. The source code is fairly complete, but you will have to fill in some missing bits. > > If anyone wants to adapt the feature to make it a command-line utility, then that would be welcome. > > Added: > ofbiz/trunk/framework/webtools/webapp/webtools/XsdToJava.ftl > Modified: > ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml > ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml > ofbiz/trunk/framework/webtools/webapp/webtools/main.ftl > ofbiz/trunk/framework/webtools/widget/MiscForms.xml > ofbiz/trunk/framework/webtools/widget/MiscScreens.xml > > Modified: ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml > URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml?rev=1489362&r1=1489361&r2=1489362&view=diff > ============================================================================== > --- ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml (original) > +++ ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml Tue Jun 4 09:52:10 2013 > @@ -5823,4 +5823,19 @@ > <value xml:lang="zh">å建ä¸ä¸ªå®ä½ ${entityName} ï¼è¾å ¥å¼ï¼ç¶åç¹å»æ°å»º.</value> > <value xml:lang="zh_TW">åµå»ºä¸åå¯¦é« ${entityName} ï¼è¼¸å ¥å¼ï¼ç¶å¾é»ææ°å»º.</value> > </property> > |
|
I rushed it out because I thought it would be useful for fixing the
concurrency problems in the service engine. It could use more work, but at least it's a start. -Adrian On 6/5/2013 5:41 AM, Ashish Vijaywargiya wrote: > Very nice feature... Thanks so much Adrian! > > -- > Kind Regards > Ashish Vijaywargiya > HotWax Media - est. 1997 > ApacheCon US 2013 Gold Sponsor > http://na.apachecon.com/sponsors/ > > On Tuesday 04 June 2013 03:22 PM, [hidden email] wrote: >> Author: adrianc >> Date: Tue Jun 4 09:52:10 2013 >> New Revision: 1489362 >> >> URL: http://svn.apache.org/r1489362 >> Log: >> New feature: Convert an XSD file to Java source code. The feature >> creates immutable Java object models that represent the XML file >> defined by the schema. It supports an optional Visitor implementation. >> >> The feature can be accessed in Web Tools by clicking on the XSD to >> Java link. >> >> The Java source code is displayed in a text area - where it can be >> copied-and-pasted to your IDE. The source code is fairly complete, >> but you will have to fill in some missing bits. >> >> If anyone wants to adapt the feature to make it a command-line >> utility, then that would be welcome. >> >> Added: >> ofbiz/trunk/framework/webtools/webapp/webtools/XsdToJava.ftl >> Modified: >> ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml >> ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/controller.xml >> ofbiz/trunk/framework/webtools/webapp/webtools/main.ftl >> ofbiz/trunk/framework/webtools/widget/MiscForms.xml >> ofbiz/trunk/framework/webtools/widget/MiscScreens.xml >> >> Modified: ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml >> URL: >> http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml?rev=1489362&r1=1489361&r2=1489362&view=diff >> ============================================================================== >> >> --- ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml >> (original) >> +++ ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml Tue >> Jun 4 09:52:10 2013 >> @@ -5823,4 +5823,19 @@ >> <value >> xml:lang="zh">å建ä¸ä¸ªå®ä½ ${entityName} >> ï¼è¾å ¥å¼ï¼ç¶åç¹å»æ°å»º.</value> >> <value >> xml:lang="zh_TW">åµå»ºä¸åå¯¦é« ${entityName} >> ï¼è¼¸å ¥å¼ï¼ç¶å¾é»ææ°å»º.</value> >> </property> >> > > |
| Free forum by Nabble | Edit this page |
