SnippetDefinintion now delegates to JsonHandler instead of an own Gson
[Mograsim.git] / plugins / net.mograsim.logic.model / src / net / mograsim / logic / model / util / JsonHandler.java
index 7c8e353..4c49104 100644 (file)
@@ -45,6 +45,11 @@ public class JsonHandler
                return parser.fromJson(src, type);
        }
 
+       public static <T> T fromJson(JsonElement json, Class<T> type)
+       {
+               return parser.fromJson(json, type);
+       }
+
        public static <T> T fromJsonTree(JsonElement src, Class<T> type)
        {
                return parser.fromJson(src, type);