Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Globalization of generated code for EMF Model
Globalization of generated code for EMF Model [message #646104] Wed, 22 December 2010 05:11 Go to next message
Ashwani Kr Sharma is currently offline Ashwani Kr SharmaFriend
Messages: 119
Registered: July 2009
Location: Bangalore, India
Senior Member

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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
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>
   
&lt;%=publicStaticFinalFlag%&gt;&lt;%=genModel.g etImportedName( "java.lang.String")%&gt;
eNS_URI = "&lt;%=genPackage.getNSURI()%&gt;";<b>&lt;%=genModel.getNonNLS()%&gt; </b><br>
<br>
And for me it comes generated like this:<br>
<blockquote>  /**<br>
   * The package namespace URI.<br>
   * &lt;!-- begin-user-doc --&gt;<br>
   * &lt;!-- end-user-doc --&gt;<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/
Previous Topic:EReference Containment
Next Topic:why during my unload crossreferencer resolve my already unloaded resources .... ?
Goto Forum:
  


Current Time: Fri Apr 26 23:38:27 GMT 2024

Powered by FUDForum. Page generated in 0.02855 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top