From: Hannu Niemistö Date: Mon, 1 Oct 2018 10:30:17 +0000 (+0300) Subject: Fix to OrderedSetTemplate, preference for autocompletion X-Git-Tag: v1.43.0~136^2~350^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=804e2db842bdda00bb28a1f599a5293644c8d55e;p=simantics%2Fplatform.git Fix to OrderedSetTemplate, preference for autocompletion gitlab #139 Change-Id: Ib7b811533cb16d59896f385b964d67b03909364a --- diff --git a/bundles/org.simantics.graph.compiler/META-INF/MANIFEST.MF b/bundles/org.simantics.graph.compiler/META-INF/MANIFEST.MF index 400bdceea..b6f9a9442 100644 --- a/bundles/org.simantics.graph.compiler/META-INF/MANIFEST.MF +++ b/bundles/org.simantics.graph.compiler/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: Compiler Bundle-SymbolicName: org.simantics.graph.compiler;singleton:=true -Bundle-Version: 1.1.16.qualifier +Bundle-Version: 1.1.18.qualifier Bundle-RequiredExecutionEnvironment: JavaSE-1.8 Require-Bundle: org.simantics.graph;bundle-version="1.1.15";visibility:=reexport, org.simantics.databoard;bundle-version="0.6.6", diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/GraphCompilerPreferences.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/GraphCompilerPreferences.java index 6487d8e91..ca81b6974 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/GraphCompilerPreferences.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/GraphCompilerPreferences.java @@ -4,6 +4,7 @@ public class GraphCompilerPreferences { public boolean validate = false; public ValidationMode validateRelationRestrictions = ValidationMode.IGNORE; public ValidationMode validateResourceHasType = ValidationMode.IGNORE; + public boolean autoCompletion; @Override public String toString() { @@ -11,6 +12,7 @@ public class GraphCompilerPreferences { b.append("validate = " + validate + "\n"); b.append("validateRelationRestrictions = " + validateRelationRestrictions + "\n"); b.append("validateResourceHasType = " + validateResourceHasType + "\n"); + b.append("autoCompletion = " + autoCompletion + "\n"); return b.toString(); } } diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/OrderedSetTemplate.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/OrderedSetTemplate.java index 22679d626..b83d6a944 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/OrderedSetTemplate.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/OrderedSetTemplate.java @@ -29,6 +29,7 @@ public enum OrderedSetTemplate implements ITemplate { int inverse = store.identities.newResource(); store.statements.add(inverse, SubrelationOf, HasPrevious); store.statements.add(relation, InverseOf, inverse); + store.identities.defineChild(relation, "Inverse", inverse); for(int i=1;i