X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.graph.compiler%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fcompiler%2Finternal%2Fltk%2FProblem.java;fp=bundles%2Forg.simantics.graph.compiler%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fcompiler%2Finternal%2Fltk%2FProblem.java;h=96347895ac910bff2e59440b85470cc6c53866c2;hp=0000000000000000000000000000000000000000;hb=6b5821ad728bf2f127091cb36d57b87749a6532f;hpb=c2ab38c94029486a379c79a7b38604f1c03afa44 diff --git a/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/Problem.java b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/Problem.java new file mode 100644 index 000000000..96347895a --- /dev/null +++ b/bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/Problem.java @@ -0,0 +1,34 @@ +package org.simantics.graph.compiler.internal.ltk; + +public class Problem { + Location location; + String description; + Severity severity; + + public Problem(Location location, String description, + Severity severity) { + this.location = location; + this.description = description; + this.severity = severity; + } + + public Problem(Location location, String description) { + this(location, description, Severity.ERROR); + } + + public Location getLocation() { + return location; + } + + public void setLocation(Location location) { + this.location = location; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } +} \ No newline at end of file