* Bug #8060 fixed - Improve the display of a list in the variable browser.
[scilab.git] / scilab / modules / types / src / java / org / scilab / modules / types / ScilabTypeEnumDescription.java
index cf68571..11cec11 100644 (file)
@@ -63,4 +63,25 @@ public class ScilabTypeEnumDescription {
             return Messages.gettext("Unknown datatype");
         }
     }
+
+    /*
+     * Return the description of the mlist code ('ce' => 'cell', 'st => 'struct', etc)
+     * @param shortCode the short code
+     * @return the full description
+     */
+    public static String getListTypeDescription (String shortCode) {
+        // Once we switch to Java 7, we can replace that by a String switch
+        if (shortCode.equals("ce")) {
+            shortCode = "cell";
+        } else {
+            if (shortCode.equals("st")) {
+                shortCode = "struct";
+            } else {
+                if (shortCode.equals("fptr")) {
+                    shortCode = "built-in";
+                }
+            }
+        }
+        return shortCode;
+    }
 }
\ No newline at end of file