Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/ui/sources/TextChangedEvent.java

Issue 17431004: New UI for Find command: find-as-you-type. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/ui/sources/TextChangedEvent.java
===================================================================
--- editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/ui/sources/TextChangedEvent.java (revision 0)
+++ editor/tools/plugins/com.xored.glance.ui/src/com/xored/glance/ui/sources/TextChangedEvent.java (revision 0)
@@ -0,0 +1,45 @@
+/**
+ *
+ */
+package com.xored.glance.ui.sources;
+
+/**
+ * @author Yuri Strot
+ */
+public class TextChangedEvent {
+
+ public TextChangedEvent(int start, int length, String replacedText) {
+ this.start = start;
+ this.length = length;
+ this.replacedText = replacedText;
+ }
+
+ /**
+ * @return the start
+ */
+ public int getStart() {
+ return start;
+ }
+
+ /**
+ * @return the length
+ */
+ public int getLength() {
+ return length;
+ }
+
+ /**
+ * @return the replacedText
+ */
+ public String getReplacedText() {
+ return replacedText;
+ }
+
+ /** start offset of the new text */
+ private int start;
+ /** length of the new text */
+ private int length;
+ /** replaced text or empty string if no text was replaced */
+ private String replacedText;
+
+}

Powered by Google App Engine
This is Rietveld 408576698