Globalization of generated code for EMF Model [message #646104] |
Wed, 22 December 2010 05:11 |
|
Hi,
In EMF Gen model i have marked the non nls marker flag as true. On generation the interfaces and implementation are marked non-nls.
But
1) The package class has three constants eNS_URI, eNS_PREFIX, eNAME are still not marked non-nls.
2) The string for literal and name in Enums are also not marked as non-nls
Should not they be also marked as non-nls ?
Regards,
Ashwani Kr Sharma
[Updated on: Wed, 22 December 2010 05:25] Report message to a moderator
|
|
|
Re: Globalization of generated code for EMF Model [message #646197 is a reply to message #646104] |
Wed, 22 December 2010 16:05 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------000205010604040803090509
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Ashwani,
The template looks like this
<%=publicStaticFinalFlag%><%=genModel.getImportedName("java.lang.String ")%>
eNS_URI = "<%=genPackage.getNSURI()%>";*<%=genModel.getNonNLS()%>*
And for me it comes generated like this:
/**
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String eNS_URI = "http://www.example.com/Library"; //$NON-NLS-1$
So I don't see what you're seeing.
Ashwani Kr Sharma wrote:
> Hi,
>
> In EMF Gen model i have marked the non nls marker flag as true. On
> generation the interfaces and implementation are marked non-nls.
> But the package class has three constants eNS_URI, eNS_PREFIX, eNAME
> are still not marked non-nls.
>
> Should not they be also marked as non-nls ?
>
> Regards,
> Ashwani Kr Sharma
--------------000205010604040803090509
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Ashwani,<br>
<br>
<br>
The template looks like this<br>
<br>
<%=publicStaticFinalFlag%><%=genModel.g etImportedName( "java.lang.String")%>
eNS_URI = "<%=genPackage.getNSURI()%>";<b><%=genModel.getNonNLS()%> </b><br>
<br>
And for me it comes generated like this:<br>
<blockquote> /**<br>
* The package namespace URI.<br>
* <!-- begin-user-doc --><br>
* <!-- end-user-doc --><br>
* @generated<br>
*/<br>
String eNS_URI = <a class="moz-txt-link-rfc2396E" href="http://www.example.com/Library">"http://www.example.com/Library"</a>; //$NON-NLS-1$<br>
</blockquote>
So I don't see what you're seeing.<br>
<br>
<br>
Ashwani Kr Sharma wrote:
<blockquote cite="mid:ies11h$8us$1@news.eclipse.org" type="cite">Hi,
<br>
<br>
In EMF Gen model i have marked the non nls marker flag as true. On
generation the interfaces and implementation are marked non-nls.
<br>
But the package class has three constants eNS_URI, eNS_PREFIX, eNAME
are still not marked non-nls.
<br>
<br>
Should not they be also marked as non-nls ?
<br>
<br>
Regards,
<br>
Ashwani Kr Sharma
<br>
</blockquote>
</body>
</html>
--------------000205010604040803090509--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02855 seconds