< prev index next >
src/share/classes/sun/tools/jconsole/Version.java.template
Print this page
rev 1501 : 7017818: NLS: JConsoleResources.java cannot be handled by translation team
Reviewed-by: mchung, mfang
*** 24,54 ****
*/
package sun.tools.jconsole;
import java.io.PrintStream;
public class Version {
private static final String jconsole_version =
"@@jconsole_version@@";
public static void print(PrintStream ps) {
printFullVersion(ps);
! ps.println(Resources.getText("Name and Build",
System.getProperty("java.runtime.name"),
System.getProperty("java.runtime.version")));
! ps.println(Resources.getText("Name Build and Mode",
System.getProperty("java.vm.name"),
System.getProperty("java.vm.version"),
System.getProperty("java.vm.info")));
}
public static void printFullVersion(PrintStream ps) {
! ps.println(Resources.getText("JConsole version", jconsole_version));
}
static String getVersion() {
return jconsole_version;
}
--- 24,55 ----
*/
package sun.tools.jconsole;
import java.io.PrintStream;
+ import sun.tools.jconsole.Messages;
public class Version {
private static final String jconsole_version =
"@@jconsole_version@@";
public static void print(PrintStream ps) {
printFullVersion(ps);
! ps.println(Resources.format(Messages.NAME_AND_BUILD,
System.getProperty("java.runtime.name"),
System.getProperty("java.runtime.version")));
! ps.println(Resources.format(Messages.NAME_AND_BUILD,
System.getProperty("java.vm.name"),
System.getProperty("java.vm.version"),
System.getProperty("java.vm.info")));
}
public static void printFullVersion(PrintStream ps) {
! ps.println(Resources.format(Messages.JCONSOLE_VERSION, jconsole_version));
}
static String getVersion() {
return jconsole_version;
}
< prev index next >