X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.document.server.io%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Fserver%2Fio%2FJSONObjectUtils.java;h=c9e438af647aa258311422262443918949980607;hb=fdbe8762;hp=794b9e55b364a524c9e5a8fe583e153c10d8d429;hpb=96bb7ef9cbe42d82eb58306d8f9b62392cc29ba8;p=simantics%2Fplatform.git 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);