From: rkv Date: Wed, 13 Feb 2013 11:37:52 +0000 (+0000) Subject: I18n key and string value properties are added to the ProgressState enumeration. X-Git-Tag: Root_Delivery2_2013_04_22~140 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8c6ad22312d53076445ca8dba56e7dedbef0d22e;p=tools%2Fsiman.git I18n key and string value properties are added to the ProgressState enumeration. --- diff --git a/Workspace/Siman-Common/src/org/splat/dal/bo/som/ProgressState.java b/Workspace/Siman-Common/src/org/splat/dal/bo/som/ProgressState.java index 9a80331..96cb689 100644 --- a/Workspace/Siman-Common/src/org/splat/dal/bo/som/ProgressState.java +++ b/Workspace/Siman-Common/src/org/splat/dal/bo/som/ProgressState.java @@ -36,4 +36,22 @@ public enum ProgressState { * Study-specific state qualifying typical reference studies. */ TEMPLATE; + + /** + * Get i18n key of the enumeration value. + * + * @return i18n key + */ + public String getKey() { + return "label." + name(); + } + + /** + * Get enumeration constant as a string. + * + * @return enumeration constant name + */ + public String getValue() { + return name(); + } } \ No newline at end of file diff --git a/Workspace/Siman-Common/src/org/splat/dal/bo/som/Study.java b/Workspace/Siman-Common/src/org/splat/dal/bo/som/Study.java index f9d4ec4..60af1df 100644 --- a/Workspace/Siman-Common/src/org/splat/dal/bo/som/Study.java +++ b/Workspace/Siman-Common/src/org/splat/dal/bo/som/Study.java @@ -53,6 +53,9 @@ public class Study extends ProjectElement { * Persistent list of study scenarios. */ private final List scenarii = new LinkedList(); + /** + * Persistent study version property. + */ private String version; /** * Persistent history property. It is a number of studies versioning this one, if any.