mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
44 lines
2.3 KiB
HTML
44 lines
2.3 KiB
HTML
<html>
|
|
<body>
|
|
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
|
|
<tr>
|
|
<td colspan="2"><font face="verdana" size="-1">
|
|
Replaces a string concatenation (e.g. </font><code>String s = "Hello " + name;</code>)
|
|
<font face="verdana" size="-1">with an internationalized Java code expression (e.g.</font>
|
|
<code>String s = MessageFormat.format(​myResourceBundle.getString(​"hello.0"), name);</code><font face="verdana" size="-1">).<br>
|
|
This built-in template is editable. Along with Java expressions and comments, you can also use the predefined variables that
|
|
will be then expanded into the corresponding values.</font>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
|
|
<tr>
|
|
<td colspan="3"><font face="verdana" size="-1">Predefined variables take the following values:</font></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><nobr><font face="verdana" size="-2"><b>${RESOURCE_BUNDLE}</b></font></nobr></td>
|
|
<td width="10"> </td>
|
|
<td width="100%" valign="top"><font face="verdana" size="-1">Expression of the <b>java.util.ResourceBundle</b> type, instance of which is available in this context.</font></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><nobr><font face="verdana" size="-2"><b>${PARAMETERS}</b></font></nobr></td>
|
|
<td width="10"> </td>
|
|
<td width="100%" valign="top"><font face="verdana" size="-1">Variables used in the string concatenation, usually passed as arguments to the internationalized expression.</font></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><nobr><font face="verdana" size="-2"><b>${PROPERTY_KEY}</b></font></nobr></td>
|
|
<td width="10"> </td>
|
|
<td width="100%" valign="top"><font face="verdana" size="-1">Property key name which is defined in the corresponding properties file.
|
|
Typically it is the value that is used for <b>ResourceBundle.getString()</b> method parameter.
|
|
</font></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><nobr><font face="verdana" size="-2"><b>${PROPERTY_VALUE}</b></font></nobr></td>
|
|
<td width="10"> </td>
|
|
<td width="100%" valign="top"><font face="verdana" size="-1">Property value which is defined in the corresponding properties file.
|
|
This is the original Java string literal value.
|
|
</font></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html> |