X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.document.server.io%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Fserver%2Fio%2FJSONObjectUtils.java;h=c9e438af647aa258311422262443918949980607;hp=794b9e55b364a524c9e5a8fe583e153c10d8d429;hb=bf75fd9;hpb=21f879fcd72d7749836fb64375094ef29573fe8c diff --git a/bundles/org.simantics.document.server.io/src/org/simantics/document/server/io/JSONObjectUtils.java b/bundles/org.simantics.document.server.io/src/org/simantics/document/server/io/JSONObjectUtils.java index 794b9e55b..c9e438af6 100644 --- a/bundles/org.simantics.document.server.io/src/org/simantics/document/server/io/JSONObjectUtils.java +++ b/bundles/org.simantics.document.server.io/src/org/simantics/document/server/io/JSONObjectUtils.java @@ -62,7 +62,11 @@ public class JSONObjectUtils { public static boolean selected(IJSONObject object) { return getValueOrDefault(object, "selected", false); } - + + public static boolean followEditMode(IJSONObject object) { + return getValueOrDefault(object, "followEditMode", true); + } + public static String getType(IJSONObject object) { String result = (String)object.getValue("type"); if(result == null) throw new IllegalStateException("No type for object " + object);