Added NON-NLS tag to hardcoded strings not needing National Language Support

This commit is contained in:
Nick Davis 2014-04-21 15:05:00 -04:00
parent 7cd3fc1fbe
commit e2ee67265f

View File

@ -61,31 +61,31 @@ public class Installer extends ModuleInstall {
//Note: if shipping with a different CRT version, this will only print a warning //Note: if shipping with a different CRT version, this will only print a warning
//and try to use linker mechanism to find the correct versions of libs. //and try to use linker mechanism to find the correct versions of libs.
//We should update this if we officially switch to a new version of CRT/compiler //We should update this if we officially switch to a new version of CRT/compiler
System.loadLibrary("msvcr100"); System.loadLibrary("msvcr100"); //NON-NLS
System.loadLibrary("msvcp100"); System.loadLibrary("msvcp100"); //NON-NLS
logger.log(Level.INFO, "MS CRT libraries loaded"); logger.log(Level.INFO, "MS CRT libraries loaded"); //NON-NLS
} catch (UnsatisfiedLinkError e) { } catch (UnsatisfiedLinkError e) {
logger.log(Level.SEVERE, "Error loading ms crt libraries, ", e); logger.log(Level.SEVERE, "Error loading ms crt libraries, ", e); //NON-NLS
} }
try { try {
System.loadLibrary("zlib"); System.loadLibrary("zlib"); //NON-NLS
logger.log(Level.INFO, "ZLIB library loaded loaded"); logger.log(Level.INFO, "ZLIB library loaded loaded"); //NON-NLS
} catch (UnsatisfiedLinkError e) { } catch (UnsatisfiedLinkError e) {
logger.log(Level.SEVERE, "Error loading ZLIB library, ", e); logger.log(Level.SEVERE, "Error loading ZLIB library, ", e); //NON-NLS
} }
try { try {
System.loadLibrary("libewf"); System.loadLibrary("libewf"); //NON-NLS
logger.log(Level.INFO, "EWF library loaded"); logger.log(Level.INFO, "EWF library loaded"); //NON-NLS
} catch (UnsatisfiedLinkError e) { } catch (UnsatisfiedLinkError e) {
logger.log(Level.SEVERE, "Error loading EWF library, ", e); logger.log(Level.SEVERE, "Error loading EWF library, ", e); //NON-NLS
} }
} }
} }
public Installer() { public Installer() {
logger.log(Level.INFO, "core installer created"); logger.log(Level.INFO, "core installer created"); //NON-NLS
javaFxInit = false; javaFxInit = false;
packageInstallers = new ArrayList<ModuleInstall>(); packageInstallers = new ArrayList<ModuleInstall>();
@ -132,12 +132,12 @@ public class Installer extends ModuleInstall {
public void restored() { public void restored() {
super.restored(); super.restored();
logger.log(Level.INFO, "restored()"); logger.log(Level.INFO, "restored()"); //NON-NLS
initJavaFx(); initJavaFx();
for (ModuleInstall mi : packageInstallers) { for (ModuleInstall mi : packageInstallers) {
logger.log(Level.INFO, mi.getClass().getName() + " restored()"); logger.log(Level.INFO, mi.getClass().getName() + " restored()"); //NON-NLS
try { try {
mi.restored(); mi.restored();
} catch (Exception e) { } catch (Exception e) {
@ -151,9 +151,9 @@ public class Installer extends ModuleInstall {
public void validate() throws IllegalStateException { public void validate() throws IllegalStateException {
super.validate(); super.validate();
logger.log(Level.INFO, "validate()"); logger.log(Level.INFO, "validate()"); //NON-NLS
for (ModuleInstall mi : packageInstallers) { for (ModuleInstall mi : packageInstallers) {
logger.log(Level.INFO, mi.getClass().getName() + " validate()"); logger.log(Level.INFO, mi.getClass().getName() + " validate()"); //NON-NLS
try { try {
mi.validate(); mi.validate();
} catch (Exception e) { } catch (Exception e) {
@ -166,10 +166,10 @@ public class Installer extends ModuleInstall {
public void uninstalled() { public void uninstalled() {
super.uninstalled(); super.uninstalled();
logger.log(Level.INFO, "uninstalled()"); logger.log(Level.INFO, "uninstalled()"); //NON-NLS
for (ModuleInstall mi : packageInstallers) { for (ModuleInstall mi : packageInstallers) {
logger.log(Level.INFO, mi.getClass().getName() + " uninstalled()"); logger.log(Level.INFO, mi.getClass().getName() + " uninstalled()"); //NON-NLS
try { try {
mi.uninstalled(); mi.uninstalled();
} catch (Exception e) { } catch (Exception e) {
@ -185,7 +185,7 @@ public class Installer extends ModuleInstall {
public void close() { public void close() {
super.close(); super.close();
logger.log(Level.INFO, "close()"); logger.log(Level.INFO, "close()"); //NON-NLS
//exit JavaFx plat //exit JavaFx plat
if (javaFxInit) { if (javaFxInit) {
@ -193,7 +193,7 @@ public class Installer extends ModuleInstall {
} }
for (ModuleInstall mi : packageInstallers) { for (ModuleInstall mi : packageInstallers) {
logger.log(Level.INFO, mi.getClass().getName() + " close()"); logger.log(Level.INFO, mi.getClass().getName() + " close()"); //NON-NLS
try { try {
mi.close(); mi.close();
} catch (Exception e) { } catch (Exception e) {