]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.graph.compiler/src/org/simantics/graph/compiler/internal/ltk/Problem.java
Removed org.simantics.ltk[.antlr] bundles, exact import for antlr
[simantics/platform.git] / bundles / org.simantics.graph.compiler / src / org / simantics / graph / compiler / internal / ltk / Problem.java
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 (file)
index 0000000..9634789
--- /dev/null
@@ -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