diff --git a/AlgebraicDataflowArchitectureModel/src/application/ApplicationLanguage.java b/AlgebraicDataflowArchitectureModel/src/application/ApplicationLanguage.java index a0bc583..9b0f077 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/ApplicationLanguage.java +++ b/AlgebraicDataflowArchitectureModel/src/application/ApplicationLanguage.java @@ -1,17 +1,13 @@ package application; import java.io.File; -import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import java.nio.file.Paths; import java.util.Locale; -import java.util.Properties; import java.util.ResourceBundle; -import com.sun.tools.javac.Main; - /*********************************************************************** * * @@ -19,7 +15,7 @@ public class ApplicationLanguage { private Locale locale = null; private ResourceBundle resBundle = null; - private Properties properties = null; +// private Properties properties = null; private static ApplicationLanguage instance = null; @@ -64,11 +60,11 @@ } catch (MalformedURLException e) { e.printStackTrace(); } -// resURL = Main.class.getClassLoader().getResource(RESOURCE_PATH); // for executable jar +// resURL = this.getClass().getClassLoader().getResource(RESOURCE_PATH); // for executable jar URLClassLoader urlLoader = new URLClassLoader(new URL[] { resURL }); this.resBundle = ResourceBundle.getBundle(language, this.locale, urlLoader); -// // Another method. +// // Another approach. // properties = new Properties(); // try { // properties.load(Main.class.getClassLoader().getResourceAsStream(RESOURCE_PATH + language + ".properties"));