]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
I18n key and string value properties are added to the ProgressState enumeration.
authorrkv <rkv@opencascade.com>
Wed, 13 Feb 2013 11:37:52 +0000 (11:37 +0000)
committerrkv <rkv@opencascade.com>
Wed, 13 Feb 2013 11:37:52 +0000 (11:37 +0000)
Workspace/Siman-Common/src/org/splat/dal/bo/som/ProgressState.java
Workspace/Siman-Common/src/org/splat/dal/bo/som/Study.java

index 9a80331b241744de196cdfe7a01bf0f43415ec75..96cb689d15d16494ef99617af21eec87e43ee57a 100644 (file)
@@ -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
index f9d4ec424029bee96bc97902e02b48a758c64f3d..60af1dfba3e1a6961c702ba606c446229def446a 100644 (file)
@@ -53,6 +53,9 @@ public class Study extends ProjectElement {
         * Persistent list of study scenarios.
         */
        private final List<Scenario> scenarii = new LinkedList<Scenario>();
+       /**
+        * Persistent study version property.
+        */
        private String version;
        /**
         * Persistent history property. It is a number of studies versioning this one, if any.