]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.ltk/src/org/simantics/ltk/Location.java
Removed org.simantics.ltk[.antlr] bundles, exact import for antlr
[simantics/platform.git] / bundles / org.simantics.ltk / src / org / simantics / ltk / Location.java
diff --git a/bundles/org.simantics.ltk/src/org/simantics/ltk/Location.java b/bundles/org.simantics.ltk/src/org/simantics/ltk/Location.java
deleted file mode 100644 (file)
index 011fdc3..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-package org.simantics.ltk;
-
-
-public class Location {
-       ISource source;
-       int line;
-       int beginPos;
-       int endPos;
-       
-       public Location(ISource source, int line, int beginPos, int endPos) {
-               this.source = source;
-               this.line = line;
-               this.beginPos = beginPos;
-               this.endPos = endPos;
-       }
-       
-       public Location(ISource source) {
-               this(source, 0, 0, 0);
-       }
-
-       @Override
-       public String toString() {
-               return line + ":" + beginPos;
-       }
-       
-       public ISource getSource() {
-               return source;
-       }
-       
-       public void setSource(ISource source) {
-               this.source = source;
-       }
-       
-       public int getLine() {
-               return line + source.startLine();
-       }
-       
-       public int getBeginPos() {
-               return beginPos + source.startPos();
-       }
-       
-       public int getEndPos() {
-               return endPos + source.startPos();
-       }
-}