Resource bundle accessor class generation [message #89738] |
Wed, 27 August 2003 13:31  |
Eclipse User |
|
|
|
Originally posted by: jmordax.terra.es
Hi, I am using the Externalice String wizard to internationalize my plugins.
I have created a java package xxxxx.xxxx.xxxxx.nls where I am saving a
single properties file and a single resource bundle accessor class (I
know that at
http://www.eclipse.org/articles/Article-Internationalization /how2I18n.html
it is said that this is not a good policy but in my case it is enough
because I have just few Strings).
My question is: can I reuse the resource bundle accessor class from one
package to another. The wizard seems to force me to generate a class per
package and I have to delete it and point to the single one manually.
Any comment?
Thanks in advance,
Chemi.
|
|
|
Re: Resource bundle accessor class generation [message #89755 is a reply to message #89738] |
Wed, 27 August 2003 14:01  |
Eclipse User |
|
|
|
Originally posted by: jmordax.terra.es
This is a multi-part message in MIME format.
--------------060403000908040009060105
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Forget the question. In the same article I read:
The wizard will generate this class, or you can specify your own
existing alternative implementation. In the latter case, you may want to
uncheck the *Use default substitution choice* and specify an alternative
code pattern for retrieving externalized strings. If the accessor class
is outside of the package (for example, a centralized resource bundle
accessor class), you can optionally specify that you want to *Add [an]
import declaration* to the underlying source.
Sorry,
Chemi.
Chemi wrote:
> Hi, I am using the Externalice String wizard to internationalize my
> plugins.
>
> I have created a java package xxxxx.xxxx.xxxxx.nls where I am saving a
> single properties file and a single resource bundle accessor class (I
> know that at
> http://www.eclipse.org/articles/Article-Internationalization /how2I18n.html
> it is said that this is not a good policy but in my case it is enough
> because I have just few Strings).
>
> My question is: can I reuse the resource bundle accessor class from
> one package to another. The wizard seems to force me to generate a
> class per package and I have to delete it and point to the single one
> manually.
>
> Any comment?
>
> Thanks in advance,
>
> Chemi.
--------------060403000908040009060105
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Forget the question. In the same article I read:<br>
<br>
The wizard will generate this class, or you can specify your own
existing alternative implementation. In the latter case, you may want
to uncheck the <b>Use default substitution choice</b> and specify an
alternative code pattern for retrieving externalized strings. If the
accessor class is outside of the package (for example, a centralized
resource bundle accessor class), you can optionally specify that you
want to <b>Add [an] import declaration</b> to the underlying source.<br>
<br>
Sorry,<br>
<br>
Chemi.<br>
<br>
Chemi wrote:<br>
<blockquote type="cite" cite="midbiiq30$2cr$1@eclipse.org">Hi, I am
using the Externalice String wizard to internationalize my plugins.
<br>
<br>
I have created a java package xxxxx.xxxx.xxxxx.nls where I am saving a
single properties file and a single resource bundle accessor class (I
know that at
<a class="moz-txt-link-freetext" href=" http://www.eclipse.org/articles/Article-Internationalization /how2I18n.html"> http://www.eclipse.org/articles/Article-Internationalization /how2I18n.html</a>
it is said that this is not a good policy but in my case it is enough
because I have just few Strings).
<br>
<br>
My question is: can I reuse the resource bundle accessor class from one
package to another. The wizard seems to force me to generate a class
per package and I have to delete it and point to the single one
manually.
<br>
<br>
Any comment?
<br>
<br>
Thanks in advance,
<br>
<br>
Chemi.
<br>
</blockquote>
</body>
</html>
--------------060403000908040009060105--
|
|
|
Powered by
FUDForum. Page generated in 0.04064 seconds