X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.graph%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Frepresentation%2FExtensions.java;fp=bundles%2Forg.simantics.graph%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Frepresentation%2FExtensions.java;h=375fb1416899f57bb40c66761b31504773bef870;hb=aab6399f20c07b61a0dbf9614614f44a2e0ea325;hp=8a8cb3d568fa571e905a8bfc6a8c53245c77f856;hpb=fb019f116468d003a751e4274a69ba01c34fa10b;p=simantics%2Fplatform.git
diff --git a/bundles/org.simantics.graph/src/org/simantics/graph/representation/Extensions.java b/bundles/org.simantics.graph/src/org/simantics/graph/representation/Extensions.java
index 8a8cb3d56..375fb1416 100644
--- a/bundles/org.simantics.graph/src/org/simantics/graph/representation/Extensions.java
+++ b/bundles/org.simantics.graph/src/org/simantics/graph/representation/Extensions.java
@@ -2,18 +2,33 @@ package org.simantics.graph.representation;
import java.util.TreeMap;
+import org.simantics.databoard.Bindings;
+import org.simantics.databoard.binding.Binding;
import org.simantics.databoard.binding.mutable.Variant;
public class Extensions {
-
+
+ public static final Binding BINDING = Bindings.getBindingUnchecked(Extensions.class);
+
+ /**
+ * Used for storing a cached hash code computed from a
+ * {@link TransferableGraph1} instance without this cached hashcode
+ * key,value pair in the extensions
map.
+ */
+ public final static String CACHED_HASHCODE = "cached.hashCode";
+
final public static String CLUSTERING = "clustering";
final public static String CLUSTER_SETS = "clusterSets";
final public static int NO_CLUSTER_SET = -1;
final public static int ROOT_LIBRARY_CLUSTER_SET = -1;
final public static int INDEX_ROOT_CLUSTER_SET = -2;
-
- public TreeMap map = new TreeMap();
-
+
+ public TreeMap map;
+
+ public Extensions() {
+ this.map = new TreeMap<>();
+ }
+
public Extensions(TreeMap map) {
this.map = map;
}