Index: editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/ui/sources/SourceSelection.java |
=================================================================== |
--- editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/ui/sources/SourceSelection.java (revision 0) |
+++ editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/ui/sources/SourceSelection.java (revision 0) |
@@ -0,0 +1,47 @@ |
+/** |
+ * |
+ */ |
+package com.xored.glance.ui.sources; |
+ |
+/** |
+ * @author Yuri Strot |
+ */ |
+public class SourceSelection { |
+ |
+ public SourceSelection(ITextBlock block, int offset, int length) { |
+ this.block = block; |
+ this.offset = offset; |
+ this.length = length; |
+ } |
+ |
+ /** |
+ * @return the block |
+ */ |
+ public ITextBlock getBlock() { |
+ return block; |
+ } |
+ |
+ /** |
+ * @return the length |
+ */ |
+ public int getLength() { |
+ return length; |
+ } |
+ |
+ /** |
+ * @return the offset |
+ */ |
+ public int getOffset() { |
+ return offset; |
+ } |
+ |
+ @Override |
+ public String toString() { |
+ return block + ": (" + offset + ", " + length + ")"; |
+ } |
+ |
+ private ITextBlock block; |
+ private int offset; |
+ private int length; |
+ |
+} |