diff --git a/AlgebraicDataflowArchitectureModel/src/application/ApplicationLanguage.java b/AlgebraicDataflowArchitectureModel/src/application/ApplicationLanguage.java index 9b0f077..238f283 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/ApplicationLanguage.java +++ b/AlgebraicDataflowArchitectureModel/src/application/ApplicationLanguage.java @@ -9,13 +9,11 @@ import java.util.ResourceBundle; /*********************************************************************** - * - * + * アプリケーションの言語を切り替える(シングルトン) */ public class ApplicationLanguage { private Locale locale = null; private ResourceBundle resBundle = null; -// private Properties properties = null; private static ApplicationLanguage instance = null; @@ -25,6 +23,7 @@ public final static String EN = "en"; /*********************************************************************** + /*********************************************************************** * [ *constructor ] /*********************************************************************** * @@ -36,21 +35,22 @@ } /*********************************************************************** - * [ *public static] - * /*********************************************************************** + /*********************************************************************** + * [ *public static ] + /*********************************************************************** * - * @return */ public static ApplicationLanguage getInstance() { - if (instance == null) - instance = new ApplicationLanguage(); + if (instance == null) instance = new ApplicationLanguage(); return instance; } /*********************************************************************** - * + /*********************************************************************** + * [ *public ] /*********************************************************************** - * + * ローカルの .properties から言語情報を切り替え. + * @param language 変更先の言語 */ public void setLocaleLanguage(final String language) { URL resURL = null; @@ -74,7 +74,8 @@ } /*********************************************************************** - * + * オプション名に対応した名前を返す. + * @param propName 取得したいプロパティの名前 */ public String getOptionByPropName(final String propName) { // return properties.getProperty(propName);