From: Hannu Niemistö Date: Mon, 18 Jun 2018 08:05:39 +0000 (+0300) Subject: Removed org.simantics.ltk[.antlr] bundles, exact import for antlr X-Git-Tag: v1.43.0~136^2~463 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=6b5821ad728bf2f127091cb36d57b87749a6532f;p=simantics%2Fplatform.git Removed org.simantics.ltk[.antlr] bundles, exact import for antlr gitlab #24 Change-Id: I582628d505edcec5565e768a42b984fdb3e096fb --- diff --git a/bundles/org.simantics.graph.compiler/META-INF/MANIFEST.MF b/bundles/org.simantics.graph.compiler/META-INF/MANIFEST.MF index 9e5345c87..f1e93de0d 100644 --- a/bundles/org.simantics.graph.compiler/META-INF/MANIFEST.MF +++ b/bundles/org.simantics.graph.compiler/META-INF/MANIFEST.MF @@ -4,13 +4,13 @@ Bundle-Name: Compiler Bundle-SymbolicName: org.simantics.graph.compiler;singleton:=true Bundle-Version: 1.1.16.qualifier Bundle-RequiredExecutionEnvironment: JavaSE-1.8 -Require-Bundle: org.simantics.graph;bundle-version="1.0.0";visibility:=reexport, - org.simantics.ltk.antlr;bundle-version="1.1.12", - org.simantics.databoard;bundle-version="0.5.3", - freemarker;bundle-version="2.3.16", +Require-Bundle: org.simantics.graph;bundle-version="1.1.15";visibility:=reexport, + org.simantics.databoard;bundle-version="0.6.6", + freemarker;bundle-version="2.3.23", org.junit;bundle-version="4.12.0";resolution:=optional -Export-Package: org.simantics.graph.compiler -Import-Package: org.antlr.runtime;bundle-version="[3.5.2,4.0.0)", - org.antlr.runtime.debug;bundle-version="[3.5.2,4.0.0)", - org.antlr.runtime.misc;bundle-version="[3.5.2,4.0.0)", - org.antlr.runtime.tree;bundle-version="[3.5.2,4.0.0)" +Export-Package: org.simantics.graph.compiler, + org.simantics.graph.compiler.internal.ltk +Import-Package: org.antlr.runtime;version="[0.0.0,0.0.0]";bundle-version="3.5.2", + org.antlr.runtime.debug;version="[0.0.0,0.0.0]";bundle-version="3.5.2", + org.antlr.runtime.misc;version="[0.0.0,0.0.0]";bundle-version="3.5.2", + org.antlr.runtime.tree;version="[0.0.0,0.0.0]";bundle-version="3.5.2" diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/CompilationResult.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/CompilationResult.java index c7d63f41e..8e68b965c 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/CompilationResult.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/CompilationResult.java @@ -3,12 +3,12 @@ package org.simantics.graph.compiler; import java.util.Collection; import org.simantics.graph.IResourceFile; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.representation.TransferableGraph1; -import org.simantics.ltk.Problem; /** * Result of invoking GraphCompiler.compile. - * @author Hannu Niemistö + * @author Hannu Niemist� */ public class CompilationResult { TransferableGraph1 graph; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/GraphCompiler.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/GraphCompiler.java index c1d9609e7..ed5578992 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/GraphCompiler.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/GraphCompiler.java @@ -21,6 +21,10 @@ import org.simantics.databoard.binding.error.BindingException; import org.simantics.databoard.binding.mutable.Variant; import org.simantics.databoard.container.DataContainer; import org.simantics.databoard.container.DataContainers; +import org.simantics.graph.compiler.internal.ltk.FileSource; +import org.simantics.graph.compiler.internal.ltk.ISource; +import org.simantics.graph.compiler.internal.ltk.Location; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.compiler.internal.parsing.Parsing; import org.simantics.graph.compiler.internal.procedures.AddConsistsOf; import org.simantics.graph.compiler.internal.procedures.ApplyTemplates; @@ -42,10 +46,6 @@ import org.simantics.graph.query.TransferableGraphConversion; import org.simantics.graph.representation.Extensions; import org.simantics.graph.representation.TransferableGraph1; import org.simantics.graph.store.GraphStore; -import org.simantics.ltk.FileSource; -import org.simantics.ltk.ISource; -import org.simantics.ltk.Location; -import org.simantics.ltk.Problem; public class GraphCompiler { diff --git a/bundles/org.simantics.ltk/src/org/simantics/ltk/FileSource.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/FileSource.java similarity index 92% rename from bundles/org.simantics.ltk/src/org/simantics/ltk/FileSource.java rename to bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/FileSource.java index 88addd43f..14640fae3 100644 --- a/bundles/org.simantics.ltk/src/org/simantics/ltk/FileSource.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/FileSource.java @@ -1,4 +1,4 @@ -package org.simantics.ltk; +package org.simantics.graph.compiler.internal.ltk; import java.io.File; import java.io.FileInputStream; diff --git a/bundles/org.simantics.ltk/src/org/simantics/ltk/ISource.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/ISource.java similarity index 80% rename from bundles/org.simantics.ltk/src/org/simantics/ltk/ISource.java rename to bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/ISource.java index af5c3654d..3c089144d 100644 --- a/bundles/org.simantics.ltk/src/org/simantics/ltk/ISource.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/ISource.java @@ -1,4 +1,4 @@ -package org.simantics.ltk; +package org.simantics.graph.compiler.internal.ltk; import java.io.IOException; import java.io.InputStream; diff --git a/bundles/org.simantics.ltk/src/org/simantics/ltk/LocalResourceSource.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/LocalResourceSource.java similarity index 93% rename from bundles/org.simantics.ltk/src/org/simantics/ltk/LocalResourceSource.java rename to bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/LocalResourceSource.java index 08293e979..34cda2364 100644 --- a/bundles/org.simantics.ltk/src/org/simantics/ltk/LocalResourceSource.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/LocalResourceSource.java @@ -1,4 +1,4 @@ -package org.simantics.ltk; +package org.simantics.graph.compiler.internal.ltk; import java.io.IOException; import java.io.InputStream; diff --git a/bundles/org.simantics.ltk/src/org/simantics/ltk/Location.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/Location.java similarity index 93% rename from bundles/org.simantics.ltk/src/org/simantics/ltk/Location.java rename to bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/Location.java index 011fdc3b2..4bdb81430 100644 --- a/bundles/org.simantics.ltk/src/org/simantics/ltk/Location.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/Location.java @@ -1,4 +1,4 @@ -package org.simantics.ltk; +package org.simantics.graph.compiler.internal.ltk; public class Location { diff --git a/bundles/org.simantics.ltk/src/org/simantics/ltk/Problem.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/Problem.java similarity index 92% rename from bundles/org.simantics.ltk/src/org/simantics/ltk/Problem.java rename to bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/Problem.java index 8f31723b7..96347895a 100644 --- a/bundles/org.simantics.ltk/src/org/simantics/ltk/Problem.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/Problem.java @@ -1,4 +1,4 @@ -package org.simantics.ltk; +package org.simantics.graph.compiler.internal.ltk; public class Problem { Location location; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/Severity.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/Severity.java new file mode 100644 index 000000000..afe077167 --- /dev/null +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/Severity.java @@ -0,0 +1,5 @@ +package org.simantics.graph.compiler.internal.ltk; + +public enum Severity { + WARNING, ERROR +} diff --git a/bundles/org.simantics.ltk/src/org/simantics/ltk/SourcePart.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/SourcePart.java similarity index 94% rename from bundles/org.simantics.ltk/src/org/simantics/ltk/SourcePart.java rename to bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/SourcePart.java index 1559df7c8..35a8b1666 100644 --- a/bundles/org.simantics.ltk/src/org/simantics/ltk/SourcePart.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/SourcePart.java @@ -1,4 +1,4 @@ -package org.simantics.ltk; +package org.simantics.graph.compiler.internal.ltk; import java.io.IOException; import java.io.InputStream; diff --git a/bundles/org.simantics.ltk.antlr/src/org/simantics/ltk/antlr/ANTLRUtils.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/antlr/ANTLRUtils.java similarity index 92% rename from bundles/org.simantics.ltk.antlr/src/org/simantics/ltk/antlr/ANTLRUtils.java rename to bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/antlr/ANTLRUtils.java index ec26244c0..7793473be 100644 --- a/bundles/org.simantics.ltk.antlr/src/org/simantics/ltk/antlr/ANTLRUtils.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/antlr/ANTLRUtils.java @@ -1,4 +1,4 @@ -package org.simantics.ltk.antlr; +package org.simantics.graph.compiler.internal.ltk.antlr; import java.io.IOException; @@ -12,9 +12,9 @@ import org.antlr.runtime.RecognitionException; import org.antlr.runtime.Token; import org.antlr.runtime.tree.CommonTree; import org.antlr.runtime.tree.Tree; -import org.simantics.ltk.ISource; -import org.simantics.ltk.Location; -import org.simantics.ltk.Problem; +import org.simantics.graph.compiler.internal.ltk.ISource; +import org.simantics.graph.compiler.internal.ltk.Location; +import org.simantics.graph.compiler.internal.ltk.Problem; public class ANTLRUtils { diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/parsing/Parsing.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/parsing/Parsing.java index 7c49b9315..8369180a3 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/parsing/Parsing.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/parsing/Parsing.java @@ -1,9 +1,5 @@ package org.simantics.graph.compiler.internal.parsing; -import gnu.trove.map.hash.THashMap; -import gnu.trove.procedure.TObjectIntProcedure; -import gnu.trove.procedure.TObjectObjectProcedure; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; @@ -24,6 +20,11 @@ import org.antlr.runtime.TokenStream; import org.antlr.runtime.tree.Tree; import org.simantics.graph.compiler.SourceInfo.SourceFile; import org.simantics.graph.compiler.SourceInfo.Variable; +import org.simantics.graph.compiler.internal.ltk.ISource; +import org.simantics.graph.compiler.internal.ltk.Location; +import org.simantics.graph.compiler.internal.ltk.Problem; +import org.simantics.graph.compiler.internal.ltk.SourcePart; +import org.simantics.graph.compiler.internal.ltk.antlr.ANTLRUtils; import org.simantics.graph.compiler.internal.parsing.GraphParser.file_return; import org.simantics.graph.compiler.internal.parsing.SourceSplitter.SplitPoint; import org.simantics.graph.compiler.internal.store.VariableStore; @@ -31,11 +32,10 @@ import org.simantics.graph.compiler.internal.translation.GraphTranslator; import org.simantics.graph.query.Paths; import org.simantics.graph.store.GraphStore; import org.simantics.graph.utils.GraphExecutor; -import org.simantics.ltk.ISource; -import org.simantics.ltk.Location; -import org.simantics.ltk.Problem; -import org.simantics.ltk.SourcePart; -import org.simantics.ltk.antlr.ANTLRUtils; + +import gnu.trove.map.hash.THashMap; +import gnu.trove.procedure.TObjectIntProcedure; +import gnu.trove.procedure.TObjectObjectProcedure; public class Parsing implements Runnable { diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/AddConsistsOf.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/AddConsistsOf.java index 0c3d186db..753d4bdd2 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/AddConsistsOf.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/AddConsistsOf.java @@ -1,13 +1,13 @@ package org.simantics.graph.compiler.internal.procedures; -import gnu.trove.procedure.TObjectProcedure; - import org.simantics.graph.query.Paths; import org.simantics.graph.store.GraphStore; import org.simantics.graph.store.IdentityStore; import org.simantics.graph.store.IdentityStore.ConsistsOf; import org.simantics.graph.store.StatementStore; +import gnu.trove.procedure.TObjectProcedure; + public class AddConsistsOf implements Runnable { GraphStore store; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/ApplyTemplates.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/ApplyTemplates.java index 48ff1e111..1c22cb7b7 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/ApplyTemplates.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/ApplyTemplates.java @@ -1,12 +1,12 @@ package org.simantics.graph.compiler.internal.procedures; -import gnu.trove.map.hash.TIntObjectHashMap; - import java.util.Arrays; import java.util.Collection; import org.simantics.databoard.Bindings; import org.simantics.graph.compiler.ExternalFileLoader; +import org.simantics.graph.compiler.internal.ltk.Location; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.compiler.internal.store.LocationStore; import org.simantics.graph.compiler.internal.templates.BuiltinTemplates; import org.simantics.graph.compiler.internal.templates.GraphTemplate; @@ -18,8 +18,8 @@ import org.simantics.graph.query.Paths; import org.simantics.graph.query.Res; import org.simantics.graph.representation.TransferableGraph1; import org.simantics.graph.store.GraphStore; -import org.simantics.ltk.Location; -import org.simantics.ltk.Problem; + +import gnu.trove.map.hash.TIntObjectHashMap; public class ApplyTemplates implements Runnable { IGraph graph; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/Compactify.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/Compactify.java index 7b647806d..4c6babcb5 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/Compactify.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/Compactify.java @@ -1,9 +1,9 @@ package org.simantics.graph.compiler.internal.procedures; -import gnu.trove.map.hash.TIntIntHashMap; - import org.simantics.graph.store.GraphStore; +import gnu.trove.map.hash.TIntIntHashMap; + public class Compactify implements Runnable { GraphStore store; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/ConvertPreValues.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/ConvertPreValues.java index e7b80409a..bb1fba2d9 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/ConvertPreValues.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/ConvertPreValues.java @@ -1,13 +1,11 @@ package org.simantics.graph.compiler.internal.procedures; -import gnu.trove.list.array.TIntArrayList; -import gnu.trove.map.hash.TIntObjectHashMap; - import java.util.Collection; import org.simantics.databoard.Bindings; import org.simantics.databoard.binding.Binding; import org.simantics.databoard.type.Datatype; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.compiler.internal.store.PreValueStore; import org.simantics.graph.query.IDataTypeQuery; import org.simantics.graph.query.IGraph; @@ -15,7 +13,9 @@ import org.simantics.graph.query.Paths; import org.simantics.graph.store.GraphStore; import org.simantics.graph.store.StatementStore; import org.simantics.graph.store.ValueStore; -import org.simantics.ltk.Problem; + +import gnu.trove.list.array.TIntArrayList; +import gnu.trove.map.hash.TIntObjectHashMap; public class ConvertPreValues implements Runnable { diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/CreateInverseRelations.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/CreateInverseRelations.java index 21ccc1464..e40844f80 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/CreateInverseRelations.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/CreateInverseRelations.java @@ -1,14 +1,14 @@ package org.simantics.graph.compiler.internal.procedures; -import gnu.trove.list.array.TIntArrayList; -import gnu.trove.map.hash.TIntIntHashMap; - import org.simantics.graph.query.IGraph; import org.simantics.graph.query.Paths; import org.simantics.graph.query.Res; import org.simantics.graph.store.GraphStore; import org.simantics.graph.store.StatementStore; +import gnu.trove.list.array.TIntArrayList; +import gnu.trove.map.hash.TIntIntHashMap; + public class CreateInverseRelations implements Runnable { IGraph graph; GraphStore store; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/CreateTemplates.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/CreateTemplates.java index 3b3e21701..5ca67016e 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/CreateTemplates.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/CreateTemplates.java @@ -1,12 +1,11 @@ package org.simantics.graph.compiler.internal.procedures; -import gnu.trove.procedure.TIntObjectProcedure; -import gnu.trove.set.hash.THashSet; - import java.util.Collection; import org.simantics.databoard.Bindings; import org.simantics.databoard.binding.mutable.Variant; +import org.simantics.graph.compiler.internal.ltk.Location; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.compiler.internal.store.LocationStore; import org.simantics.graph.compiler.internal.templates.TemplateDefinition; import org.simantics.graph.compiler.internal.templates.TemplateDefinitionStore; @@ -14,8 +13,9 @@ import org.simantics.graph.query.CompositeGraph; import org.simantics.graph.query.Paths; import org.simantics.graph.representation.TransferableGraph1; import org.simantics.graph.store.GraphStore; -import org.simantics.ltk.Location; -import org.simantics.ltk.Problem; + +import gnu.trove.procedure.TIntObjectProcedure; +import gnu.trove.set.hash.THashSet; public class CreateTemplates implements Runnable { diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/DefaultValueTyping.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/DefaultValueTyping.java index 98ae7b943..288faf010 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/DefaultValueTyping.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/DefaultValueTyping.java @@ -1,14 +1,14 @@ package org.simantics.graph.compiler.internal.procedures; -import gnu.trove.procedure.TIntObjectProcedure; -import gnu.trove.set.hash.TIntHashSet; - import org.simantics.graph.compiler.internal.store.IPreValue; import org.simantics.graph.compiler.internal.store.PreValueStore; import org.simantics.graph.query.Path; import org.simantics.graph.query.Paths; import org.simantics.graph.store.GraphStore; +import gnu.trove.procedure.TIntObjectProcedure; +import gnu.trove.set.hash.TIntHashSet; + public class DefaultValueTyping implements Runnable { GraphStore store; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/MergeEqualResources.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/MergeEqualResources.java index 61658b1a8..8346f998d 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/MergeEqualResources.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/procedures/MergeEqualResources.java @@ -1,12 +1,12 @@ package org.simantics.graph.compiler.internal.procedures; -import gnu.trove.list.array.TIntArrayList; -import gnu.trove.map.hash.TIntIntHashMap; - import org.simantics.graph.query.Paths; import org.simantics.graph.store.GraphStore; import org.simantics.graph.store.IdentityStore; +import gnu.trove.list.array.TIntArrayList; +import gnu.trove.map.hash.TIntIntHashMap; + public class MergeEqualResources implements Runnable { GraphStore store; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/IPreValue.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/IPreValue.java index 893d08caf..6c24f2792 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/IPreValue.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/IPreValue.java @@ -3,10 +3,10 @@ package org.simantics.graph.compiler.internal.store; import java.util.Collection; import org.simantics.databoard.binding.Binding; +import org.simantics.graph.compiler.internal.ltk.Location; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.query.Path; import org.simantics.graph.query.Paths; -import org.simantics.ltk.Location; -import org.simantics.ltk.Problem; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/LocationStore.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/LocationStore.java index 3c3799bf7..06cb7f28a 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/LocationStore.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/LocationStore.java @@ -1,13 +1,13 @@ package org.simantics.graph.compiler.internal.store; +import org.simantics.graph.compiler.internal.ltk.Location; +import org.simantics.graph.store.IStore; +import org.simantics.graph.store.IndexMappingUtils; + import gnu.trove.map.hash.TIntIntHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import gnu.trove.set.hash.TIntHashSet; -import org.simantics.graph.store.IStore; -import org.simantics.graph.store.IndexMappingUtils; -import org.simantics.ltk.Location; - public class LocationStore implements IStore { TIntObjectHashMap locations; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/PreValueStore.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/PreValueStore.java index 869158813..dc4db34c5 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/PreValueStore.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/PreValueStore.java @@ -1,22 +1,22 @@ package org.simantics.graph.compiler.internal.store; -import gnu.trove.map.hash.TIntIntHashMap; -import gnu.trove.map.hash.TIntObjectHashMap; -import gnu.trove.procedure.TIntObjectProcedure; -import gnu.trove.set.hash.TIntHashSet; - import java.util.ArrayList; import java.util.Collection; import org.simantics.databoard.Bindings; import org.simantics.databoard.binding.Binding; import org.simantics.databoard.binding.mutable.Variant; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.compiler.internal.values.TreeValue; import org.simantics.graph.query.IDataTypeQuery; import org.simantics.graph.store.IStore; import org.simantics.graph.store.IndexMappingUtils; import org.simantics.graph.store.ValueStore; -import org.simantics.ltk.Problem; + +import gnu.trove.map.hash.TIntIntHashMap; +import gnu.trove.map.hash.TIntObjectHashMap; +import gnu.trove.procedure.TIntObjectProcedure; +import gnu.trove.set.hash.TIntHashSet; public class PreValueStore implements IStore { diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/VariableStore.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/VariableStore.java index 7accba993..f3dde927d 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/VariableStore.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/store/VariableStore.java @@ -1,7 +1,5 @@ package org.simantics.graph.compiler.internal.store; -import gnu.trove.map.hash.TIntIntHashMap; - import java.util.ArrayList; import java.util.List; @@ -11,6 +9,8 @@ import org.simantics.graph.compiler.SourceInfo.SourceFile; import org.simantics.graph.compiler.SourceInfo.Variable; import org.simantics.graph.store.IStore; +import gnu.trove.map.hash.TIntIntHashMap; + public class VariableStore implements IStore { public List sourceFiles = new ArrayList(); diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/BuiltinTemplates.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/BuiltinTemplates.java index 02ca1a6cb..ebe6721a2 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/BuiltinTemplates.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/BuiltinTemplates.java @@ -1,11 +1,11 @@ package org.simantics.graph.compiler.internal.templates; -import gnu.trove.map.hash.THashMap; - import org.simantics.graph.query.Path; import org.simantics.graph.query.PathChild; import org.simantics.graph.query.Paths; +import gnu.trove.map.hash.THashMap; + public class BuiltinTemplates { public final THashMap TEMPLATES = diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/GraphTemplate.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/GraphTemplate.java index 0b3b92179..3576dab37 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/GraphTemplate.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/GraphTemplate.java @@ -1,12 +1,11 @@ package org.simantics.graph.compiler.internal.templates; -import gnu.trove.map.hash.TIntIntHashMap; -import gnu.trove.map.hash.TObjectIntHashMap; - import java.util.Arrays; import java.util.Collection; import org.simantics.graph.compiler.ExternalFileLoader; +import org.simantics.graph.compiler.internal.ltk.Location; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.compiler.internal.store.LocationStore; import org.simantics.graph.query.IGraph; import org.simantics.graph.representation.External; @@ -18,8 +17,9 @@ import org.simantics.graph.store.GraphStore; import org.simantics.graph.store.IdentityStore; import org.simantics.graph.store.StatementStore; import org.simantics.graph.store.ValueStore; -import org.simantics.ltk.Location; -import org.simantics.ltk.Problem; + +import gnu.trove.map.hash.TIntIntHashMap; +import gnu.trove.map.hash.TObjectIntHashMap; public class GraphTemplate implements ITemplate { int[] prototypeResources; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/ITemplate.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/ITemplate.java index d53b28295..a69b23de3 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/ITemplate.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/ITemplate.java @@ -3,9 +3,9 @@ package org.simantics.graph.compiler.internal.templates; import java.util.Collection; import org.simantics.graph.compiler.ExternalFileLoader; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.query.IGraph; import org.simantics.graph.store.GraphStore; -import org.simantics.ltk.Problem; public interface ITemplate { void apply(IGraph graph, GraphStore store, int[] parameters, ExternalFileLoader fileLoader, Collection problems); diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/ListTemplate.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/ListTemplate.java index f9855ce71..1a8390bef 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/ListTemplate.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/ListTemplate.java @@ -3,10 +3,10 @@ package org.simantics.graph.compiler.internal.templates; import java.util.Collection; import org.simantics.graph.compiler.ExternalFileLoader; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.query.IGraph; import org.simantics.graph.query.Paths; import org.simantics.graph.store.GraphStore; -import org.simantics.ltk.Problem; public enum ListTemplate implements ITemplate { diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/LoadBytesTemplate.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/LoadBytesTemplate.java index 1bfbe8f74..158931dea 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/LoadBytesTemplate.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/LoadBytesTemplate.java @@ -6,12 +6,12 @@ import java.util.Collection; import org.simantics.databoard.Bindings; import org.simantics.databoard.binding.mutable.Variant; import org.simantics.graph.compiler.ExternalFileLoader; +import org.simantics.graph.compiler.internal.ltk.Location; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.compiler.internal.store.LocationStore; import org.simantics.graph.compiler.internal.store.PreValueStore; import org.simantics.graph.query.IGraph; import org.simantics.graph.store.GraphStore; -import org.simantics.ltk.Location; -import org.simantics.ltk.Problem; public enum LoadBytesTemplate implements ITemplate { INSTANCE; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/LoadDataValueTemplate.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/LoadDataValueTemplate.java index 94afd0b95..e461ab174 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/LoadDataValueTemplate.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/LoadDataValueTemplate.java @@ -7,12 +7,12 @@ import org.simantics.databoard.Bindings; import org.simantics.databoard.binding.mutable.Variant; import org.simantics.databoard.serialization.Serializer; import org.simantics.graph.compiler.ExternalFileLoader; +import org.simantics.graph.compiler.internal.ltk.Location; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.compiler.internal.store.LocationStore; import org.simantics.graph.compiler.internal.store.PreValueStore; import org.simantics.graph.query.IGraph; import org.simantics.graph.store.GraphStore; -import org.simantics.ltk.Location; -import org.simantics.ltk.Problem; public enum LoadDataValueTemplate implements ITemplate { INSTANCE; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/LoadStringTemplate.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/LoadStringTemplate.java index 7bbd03369..929ad86f7 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/LoadStringTemplate.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/LoadStringTemplate.java @@ -6,12 +6,12 @@ import java.util.Collection; import org.simantics.databoard.Bindings; import org.simantics.databoard.binding.mutable.Variant; import org.simantics.graph.compiler.ExternalFileLoader; +import org.simantics.graph.compiler.internal.ltk.Location; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.compiler.internal.store.LocationStore; import org.simantics.graph.compiler.internal.store.PreValueStore; import org.simantics.graph.query.IGraph; import org.simantics.graph.store.GraphStore; -import org.simantics.ltk.Location; -import org.simantics.ltk.Problem; public enum LoadStringTemplate implements ITemplate { INSTANCE; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/NewTemplate.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/NewTemplate.java index 789428474..fd3f999cf 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/NewTemplate.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/NewTemplate.java @@ -3,9 +3,9 @@ package org.simantics.graph.compiler.internal.templates; import java.util.Collection; import org.simantics.graph.compiler.ExternalFileLoader; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.query.IGraph; import org.simantics.graph.store.GraphStore; -import org.simantics.ltk.Problem; public enum NewTemplate implements ITemplate { INSTANCE; 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 45aa25faa..22679d626 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 @@ -3,10 +3,10 @@ package org.simantics.graph.compiler.internal.templates; import java.util.Collection; import org.simantics.graph.compiler.ExternalFileLoader; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.query.IGraph; import org.simantics.graph.query.Paths; import org.simantics.graph.store.GraphStore; -import org.simantics.ltk.Problem; public enum OrderedSetTemplate implements ITemplate { diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateDefinition.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateDefinition.java index 1fedb8818..a695ba566 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateDefinition.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateDefinition.java @@ -1,9 +1,8 @@ package org.simantics.graph.compiler.internal.templates; -import gnu.trove.map.hash.TIntIntHashMap; - import java.util.Collection; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.compiler.internal.procedures.Compactify; import org.simantics.graph.compiler.internal.procedures.ConvertPreValues; import org.simantics.graph.compiler.internal.procedures.DefaultValueTyping; @@ -14,7 +13,8 @@ import org.simantics.graph.query.Path; import org.simantics.graph.query.TransferableGraphConversion; import org.simantics.graph.representation.TransferableGraph1; import org.simantics.graph.store.GraphStore; -import org.simantics.ltk.Problem; + +import gnu.trove.map.hash.TIntIntHashMap; public class TemplateDefinition { String[] parameters; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateDefinitionStore.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateDefinitionStore.java index 27d382648..ac2a39218 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateDefinitionStore.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateDefinitionStore.java @@ -1,14 +1,14 @@ package org.simantics.graph.compiler.internal.templates; +import org.simantics.graph.store.IStore; +import org.simantics.graph.store.IndexMappingUtils; + import gnu.trove.map.hash.TIntIntHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import gnu.trove.procedure.TIntObjectProcedure; import gnu.trove.procedure.TObjectProcedure; import gnu.trove.set.hash.TIntHashSet; -import org.simantics.graph.store.IStore; -import org.simantics.graph.store.IndexMappingUtils; - public class TemplateDefinitionStore implements IStore { TIntObjectHashMap templateDefinitions; TIntHashSet collisions = new TIntHashSet(); diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateInstanceStore.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateInstanceStore.java index 7d88a0276..caf57dfcc 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateInstanceStore.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/templates/TemplateInstanceStore.java @@ -1,13 +1,13 @@ package org.simantics.graph.compiler.internal.templates; -import gnu.trove.map.hash.TIntIntHashMap; - import java.util.ArrayList; import java.util.Collection; import org.simantics.graph.store.IStore; import org.simantics.graph.store.IndexMappingUtils; +import gnu.trove.map.hash.TIntIntHashMap; + public class TemplateInstanceStore implements IStore { ArrayList templateInstances; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/translation/DataTypeTranslator.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/translation/DataTypeTranslator.java index 62b6bf616..b14373b3b 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/translation/DataTypeTranslator.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/translation/DataTypeTranslator.java @@ -1,7 +1,5 @@ package org.simantics.graph.compiler.internal.translation; -import gnu.trove.map.hash.THashMap; - import java.util.Collection; import org.antlr.runtime.tree.Tree; @@ -19,10 +17,12 @@ import org.simantics.databoard.type.OptionalType; import org.simantics.databoard.type.RecordType; import org.simantics.databoard.type.StringType; import org.simantics.databoard.type.UnionType; +import org.simantics.graph.compiler.internal.ltk.ISource; +import org.simantics.graph.compiler.internal.ltk.Problem; +import org.simantics.graph.compiler.internal.ltk.antlr.ANTLRUtils; import org.simantics.graph.compiler.internal.parsing.GraphParser; -import org.simantics.ltk.ISource; -import org.simantics.ltk.Problem; -import org.simantics.ltk.antlr.ANTLRUtils; + +import gnu.trove.map.hash.THashMap; public class DataTypeTranslator { diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/translation/DataValueTranslator.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/translation/DataValueTranslator.java index 7423ba913..c3f277a4c 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/translation/DataValueTranslator.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/translation/DataValueTranslator.java @@ -20,10 +20,10 @@ import org.simantics.databoard.binding.UnionBinding; import org.simantics.databoard.binding.VariantBinding; import org.simantics.databoard.binding.error.BindingException; import org.simantics.databoard.type.Datatype; +import org.simantics.graph.compiler.internal.ltk.ISource; +import org.simantics.graph.compiler.internal.ltk.Problem; +import org.simantics.graph.compiler.internal.ltk.antlr.ANTLRUtils; import org.simantics.graph.compiler.internal.parsing.GraphParser; -import org.simantics.ltk.ISource; -import org.simantics.ltk.Problem; -import org.simantics.ltk.antlr.ANTLRUtils; public class DataValueTranslator { diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/translation/GraphTranslator.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/translation/GraphTranslator.java index 623275277..63f392791 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/translation/GraphTranslator.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/translation/GraphTranslator.java @@ -1,13 +1,13 @@ package org.simantics.graph.compiler.internal.translation; -import gnu.trove.map.hash.TObjectIntHashMap; -import gnu.trove.set.hash.TIntHashSet; - import java.util.ArrayList; import java.util.Collection; import org.antlr.runtime.tree.Tree; import org.simantics.graph.compiler.SourceInfo.DefinitionPosition; +import org.simantics.graph.compiler.internal.ltk.ISource; +import org.simantics.graph.compiler.internal.ltk.Problem; +import org.simantics.graph.compiler.internal.ltk.antlr.ANTLRUtils; import org.simantics.graph.compiler.internal.parsing.GraphParser; import org.simantics.graph.compiler.internal.store.LocationStore; import org.simantics.graph.compiler.internal.store.PreValueStore; @@ -18,9 +18,9 @@ import org.simantics.graph.compiler.internal.values.TreeValue; import org.simantics.graph.query.Paths; import org.simantics.graph.query.UriUtils; import org.simantics.graph.store.GraphStore; -import org.simantics.ltk.ISource; -import org.simantics.ltk.Problem; -import org.simantics.ltk.antlr.ANTLRUtils; + +import gnu.trove.map.hash.TObjectIntHashMap; +import gnu.trove.set.hash.TIntHashSet; public class GraphTranslator extends GraphStore { diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/validation/ReportCollisions.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/validation/ReportCollisions.java index 30efe78c4..8b6f264d5 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/validation/ReportCollisions.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/validation/ReportCollisions.java @@ -3,12 +3,12 @@ package org.simantics.graph.compiler.internal.validation; import java.util.Collection; import org.simantics.graph.compiler.GraphCompilerPreferences; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.compiler.internal.store.LocationStore; import org.simantics.graph.compiler.internal.templates.TemplateDefinitionStore; import org.simantics.graph.query.Res; import org.simantics.graph.store.GraphStore; import org.simantics.graph.store.StatementCollision; -import org.simantics.ltk.Problem; public class ReportCollisions implements Runnable { GraphCompilerPreferences preferences; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/validation/ValidateGraph.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/validation/ValidateGraph.java index 13d84bfc2..d65991fb3 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/validation/ValidateGraph.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/validation/ValidateGraph.java @@ -6,6 +6,8 @@ import java.util.concurrent.Callable; import org.simantics.graph.compiler.GraphCompilerPreferences; import org.simantics.graph.compiler.ValidationMode; +import org.simantics.graph.compiler.internal.ltk.Location; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.compiler.internal.store.LocationStore; import org.simantics.graph.query.CompositeGraph; import org.simantics.graph.query.Path; @@ -14,8 +16,6 @@ import org.simantics.graph.query.Res; import org.simantics.graph.store.GraphStore; import org.simantics.graph.store.IdRes; import org.simantics.graph.utils.GraphExecutor; -import org.simantics.ltk.Location; -import org.simantics.ltk.Problem; public class ValidateGraph implements Runnable { CompositeGraph graph; diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/values/TreeValue.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/values/TreeValue.java index 94509e32d..ef1e06770 100644 --- a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/values/TreeValue.java +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/values/TreeValue.java @@ -4,15 +4,15 @@ import java.util.Collection; import org.antlr.runtime.tree.Tree; import org.simantics.databoard.binding.Binding; +import org.simantics.graph.compiler.internal.ltk.ISource; +import org.simantics.graph.compiler.internal.ltk.Location; +import org.simantics.graph.compiler.internal.ltk.Problem; +import org.simantics.graph.compiler.internal.ltk.antlr.ANTLRUtils; import org.simantics.graph.compiler.internal.parsing.GraphParser; import org.simantics.graph.compiler.internal.store.IPreValue; import org.simantics.graph.compiler.internal.translation.DataValueTranslator; import org.simantics.graph.query.Path; import org.simantics.graph.query.Paths; -import org.simantics.ltk.ISource; -import org.simantics.ltk.Location; -import org.simantics.ltk.Problem; -import org.simantics.ltk.antlr.ANTLRUtils; public class TreeValue implements IPreValue { diff --git a/bundles/org.simantics.graph.compiler/tests/org/simantics/graph/compiler/tests/GraphCompilerTests.java b/bundles/org.simantics.graph.compiler/tests/org/simantics/graph/compiler/tests/GraphCompilerTests.java index c0e328d04..7f004a5fe 100644 --- a/bundles/org.simantics.graph.compiler/tests/org/simantics/graph/compiler/tests/GraphCompilerTests.java +++ b/bundles/org.simantics.graph.compiler/tests/org/simantics/graph/compiler/tests/GraphCompilerTests.java @@ -4,17 +4,17 @@ import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; -import junit.framework.Assert; - import org.junit.Before; import org.junit.Test; import org.simantics.graph.compiler.CompilationResult; import org.simantics.graph.compiler.ExternalFileLoader; import org.simantics.graph.compiler.GraphCompiler; import org.simantics.graph.compiler.GraphCompilerPreferences; +import org.simantics.graph.compiler.internal.ltk.ISource; +import org.simantics.graph.compiler.internal.ltk.LocalResourceSource; import org.simantics.graph.representation.TransferableGraph1; -import org.simantics.ltk.ISource; -import org.simantics.ltk.LocalResourceSource; + +import junit.framework.Assert; public class GraphCompilerTests { diff --git a/bundles/org.simantics.graph.compiler/tests/org/simantics/graph/compiler/tests/TestCompiler.java b/bundles/org.simantics.graph.compiler/tests/org/simantics/graph/compiler/tests/TestCompiler.java index 0abbbb495..f878068ec 100644 --- a/bundles/org.simantics.graph.compiler/tests/org/simantics/graph/compiler/tests/TestCompiler.java +++ b/bundles/org.simantics.graph.compiler/tests/org/simantics/graph/compiler/tests/TestCompiler.java @@ -10,9 +10,9 @@ import java.util.Collections; import org.simantics.graph.compiler.ExternalFileLoader; import org.simantics.graph.compiler.GraphCompiler; import org.simantics.graph.compiler.GraphCompilerPreferences; +import org.simantics.graph.compiler.internal.ltk.FileSource; +import org.simantics.graph.compiler.internal.ltk.ISource; import org.simantics.graph.representation.TransferableGraph1; -import org.simantics.ltk.FileSource; -import org.simantics.ltk.ISource; public class TestCompiler { diff --git a/bundles/org.simantics.graph/META-INF/MANIFEST.MF b/bundles/org.simantics.graph/META-INF/MANIFEST.MF index 6ae6e86fe..d4f0ee755 100644 --- a/bundles/org.simantics.graph/META-INF/MANIFEST.MF +++ b/bundles/org.simantics.graph/META-INF/MANIFEST.MF @@ -4,7 +4,7 @@ Bundle-Name: Transferable Graph Runtime Bundle-SymbolicName: org.simantics.graph Bundle-Version: 1.1.15.qualifier Bundle-RequiredExecutionEnvironment: JavaSE-1.8 -Require-Bundle: org.simantics.databoard;bundle-version="0.5.1", +Require-Bundle: org.simantics.databoard;bundle-version="0.6.6", gnu.trove3;bundle-version="3.0.0";visibility:=reexport, org.junit;bundle-version="4.12.0";resolution:=optional Export-Package: org.simantics.graph, diff --git a/bundles/org.simantics.ltk.antlr/.classpath b/bundles/org.simantics.ltk.antlr/.classpath deleted file mode 100644 index eca7bdba8..000000000 --- a/bundles/org.simantics.ltk.antlr/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bundles/org.simantics.ltk.antlr/.project b/bundles/org.simantics.ltk.antlr/.project deleted file mode 100644 index 333699d85..000000000 --- a/bundles/org.simantics.ltk.antlr/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.simantics.ltk.antlr - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/bundles/org.simantics.ltk.antlr/.settings/org.eclipse.jdt.core.prefs b/bundles/org.simantics.ltk.antlr/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 0c68a61dc..000000000 --- a/bundles/org.simantics.ltk.antlr/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,7 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 -org.eclipse.jdt.core.compiler.compliance=1.8 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.8 diff --git a/bundles/org.simantics.ltk.antlr/META-INF/MANIFEST.MF b/bundles/org.simantics.ltk.antlr/META-INF/MANIFEST.MF deleted file mode 100644 index c44c99cb9..000000000 --- a/bundles/org.simantics.ltk.antlr/META-INF/MANIFEST.MF +++ /dev/null @@ -1,12 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: Simantics Language Toolkit, ANTLR support -Bundle-SymbolicName: org.simantics.ltk.antlr -Bundle-Version: 1.1.12.qualifier -Bundle-RequiredExecutionEnvironment: JavaSE-1.8 -Require-Bundle: org.simantics.ltk;bundle-version="1.0.0";visibility:=reexport -Export-Package: org.simantics.ltk.antlr -Import-Package: org.antlr.runtime;bundle-version="[3.5.2,4.0.0)", - org.antlr.runtime.debug;bundle-version="[3.5.2,4.0.0)", - org.antlr.runtime.misc;bundle-version="[3.5.2,4.0.0)", - org.antlr.runtime.tree;bundle-version="[3.5.2,4.0.0)" diff --git a/bundles/org.simantics.ltk.antlr/build.properties b/bundles/org.simantics.ltk.antlr/build.properties deleted file mode 100644 index 34d2e4d2d..000000000 --- a/bundles/org.simantics.ltk.antlr/build.properties +++ /dev/null @@ -1,4 +0,0 @@ -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - . diff --git a/bundles/org.simantics.ltk/.classpath b/bundles/org.simantics.ltk/.classpath deleted file mode 100644 index eca7bdba8..000000000 --- a/bundles/org.simantics.ltk/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bundles/org.simantics.ltk/.project b/bundles/org.simantics.ltk/.project deleted file mode 100644 index 0ff980551..000000000 --- a/bundles/org.simantics.ltk/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.simantics.ltk - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/bundles/org.simantics.ltk/.settings/org.eclipse.jdt.core.prefs b/bundles/org.simantics.ltk/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 0c68a61dc..000000000 --- a/bundles/org.simantics.ltk/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,7 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 -org.eclipse.jdt.core.compiler.compliance=1.8 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.8 diff --git a/bundles/org.simantics.ltk/META-INF/MANIFEST.MF b/bundles/org.simantics.ltk/META-INF/MANIFEST.MF deleted file mode 100644 index e71c7937e..000000000 --- a/bundles/org.simantics.ltk/META-INF/MANIFEST.MF +++ /dev/null @@ -1,7 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: Simantics Language Toolkit -Bundle-SymbolicName: org.simantics.ltk -Bundle-Version: 1.1.10.qualifier -Bundle-RequiredExecutionEnvironment: JavaSE-1.8 -Export-Package: org.simantics.ltk diff --git a/bundles/org.simantics.ltk/build.properties b/bundles/org.simantics.ltk/build.properties deleted file mode 100644 index 34d2e4d2d..000000000 --- a/bundles/org.simantics.ltk/build.properties +++ /dev/null @@ -1,4 +0,0 @@ -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - . diff --git a/bundles/org.simantics.ltk/src/org/simantics/ltk/Severity.java b/bundles/org.simantics.ltk/src/org/simantics/ltk/Severity.java deleted file mode 100644 index b31a51602..000000000 --- a/bundles/org.simantics.ltk/src/org/simantics/ltk/Severity.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.simantics.ltk; - -public enum Severity { - WARNING, ERROR -} diff --git a/bundles/org.simantics.modeling.ui/META-INF/MANIFEST.MF b/bundles/org.simantics.modeling.ui/META-INF/MANIFEST.MF index 2a95d6fc6..ef0147308 100644 --- a/bundles/org.simantics.modeling.ui/META-INF/MANIFEST.MF +++ b/bundles/org.simantics.modeling.ui/META-INF/MANIFEST.MF @@ -49,7 +49,6 @@ Require-Bundle: org.simantics.project;bundle-version="1.0.0", org.simantics.scl.db;bundle-version="0.1.3", org.simantics.scl.ui;bundle-version="0.5.0", org.simantics.graph.compiler;bundle-version="1.1.11", - org.simantics.ltk;bundle-version="1.1.10", org.eclipse.e4.core.di.annotations, org.eclipse.e4.core.contexts;bundle-version="1.4.0", org.eclipse.e4.ui.di, diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/CompilePGraphsAction.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/CompilePGraphsAction.java index d71d1e837..0c93e6c20 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/CompilePGraphsAction.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/CompilePGraphsAction.java @@ -18,7 +18,7 @@ import org.simantics.db.Resource; import org.simantics.db.exception.DatabaseException; import org.simantics.db.layer0.adapter.ActionFactory; import org.simantics.graph.compiler.CompilationResult; -import org.simantics.ltk.Problem; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.modeling.CompilePGraphs; import org.simantics.modeling.ui.Activator; import org.simantics.utils.ui.ExceptionUtils; diff --git a/bundles/org.simantics.modeling/META-INF/MANIFEST.MF b/bundles/org.simantics.modeling/META-INF/MANIFEST.MF index 2c0a7f145..a4375c543 100644 --- a/bundles/org.simantics.modeling/META-INF/MANIFEST.MF +++ b/bundles/org.simantics.modeling/META-INF/MANIFEST.MF @@ -40,7 +40,6 @@ Require-Bundle: org.simantics.simulation;bundle-version="1.0.0", org.slf4j.api, org.simantics.graphfile.ontology, org.apache.batik, - org.simantics.ltk, org.simantics.graph.compiler Export-Package: org.simantics.modeling, org.simantics.modeling.actions, diff --git a/bundles/org.simantics.modeling/src/org/simantics/modeling/CompilePGraphs.java b/bundles/org.simantics.modeling/src/org/simantics/modeling/CompilePGraphs.java index adc4f47f5..879a57d19 100644 --- a/bundles/org.simantics.modeling/src/org/simantics/modeling/CompilePGraphs.java +++ b/bundles/org.simantics.modeling/src/org/simantics/modeling/CompilePGraphs.java @@ -51,6 +51,8 @@ import org.simantics.graph.compiler.ExternalFileLoader; import org.simantics.graph.compiler.GraphCompiler; import org.simantics.graph.compiler.GraphCompilerPreferences; import org.simantics.graph.compiler.ValidationMode; +import org.simantics.graph.compiler.internal.ltk.ISource; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.db.TransferableGraphException; import org.simantics.graph.db.TransferableGraphSource; import org.simantics.graph.db.TransferableGraphs; @@ -61,8 +63,6 @@ import org.simantics.graph.representation.Root; import org.simantics.graph.representation.TransferableGraph1; import org.simantics.graphfile.ontology.GraphFileResource; import org.simantics.layer0.Layer0; -import org.simantics.ltk.ISource; -import org.simantics.ltk.Problem; import org.simantics.modeling.internal.Activator; import org.simantics.utils.FileUtils; import org.simantics.utils.datastructures.Pair; diff --git a/bundles/org.simantics.project/META-INF/MANIFEST.MF b/bundles/org.simantics.project/META-INF/MANIFEST.MF index 42e503aab..184681c69 100644 --- a/bundles/org.simantics.project/META-INF/MANIFEST.MF +++ b/bundles/org.simantics.project/META-INF/MANIFEST.MF @@ -37,7 +37,6 @@ Require-Bundle: org.simantics.db.layer0;bundle-version="[0.8.0,2.0.0)", org.eclipse.swt;bundle-version="3.6.0";resolution:=optional, org.eclipse.core.resources;bundle-version="3.6.0";resolution:=optional, org.simantics.graph.compiler;bundle-version="1.1.10", - org.simantics.ltk;bundle-version="1.1.10", org.slf4j.api Export-Package: org.eclipse.equinox.internal.p2.ui.query, org.eclipse.equinox.internal.provisional.p2.installer, diff --git a/bundles/org.simantics.project/src/org/simantics/project/management/PlatformUtil.java b/bundles/org.simantics.project/src/org/simantics/project/management/PlatformUtil.java index 344b2d6cf..d5c88782a 100644 --- a/bundles/org.simantics.project/src/org/simantics/project/management/PlatformUtil.java +++ b/bundles/org.simantics.project/src/org/simantics/project/management/PlatformUtil.java @@ -51,12 +51,12 @@ import org.simantics.graph.compiler.CompilationResult; import org.simantics.graph.compiler.GraphCompiler; import org.simantics.graph.compiler.GraphCompilerPreferences; import org.simantics.graph.compiler.ValidationMode; +import org.simantics.graph.compiler.internal.ltk.FileSource; +import org.simantics.graph.compiler.internal.ltk.ISource; +import org.simantics.graph.compiler.internal.ltk.Problem; import org.simantics.graph.representation.Extensions; import org.simantics.graph.representation.TransferableGraph1; import org.simantics.graph.representation.TransferableGraphFileReader; -import org.simantics.ltk.FileSource; -import org.simantics.ltk.ISource; -import org.simantics.ltk.Problem; import org.simantics.scl.reflection.OntologyVersions; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/bundles/pom.xml b/bundles/pom.xml index bcefad659..88535ff46 100644 --- a/bundles/pom.xml +++ b/bundles/pom.xml @@ -158,8 +158,6 @@ org.simantics.logback.configuration org.simantics.logging org.simantics.logging.ui - org.simantics.ltk - org.simantics.ltk.antlr org.simantics.lz4 org.simantics.mapping org.simantics.message diff --git a/features/org.simantics.platform.feature/feature.xml b/features/org.simantics.platform.feature/feature.xml index 5cbeefc85..b3ce97345 100644 --- a/features/org.simantics.platform.feature/feature.xml +++ b/features/org.simantics.platform.feature/feature.xml @@ -90,20 +90,6 @@ version="0.0.0" unpack="false"/> - - - -