Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorisikm2008-06-15 17:07:52 +0000
committerisikm2008-06-15 17:07:52 +0000
commit8d21db84a4d2bc5fb8e9866d82043d5ffaf124fe (patch)
tree81fe78f06af1d396befd4591eb4317da554ad0be
parent334959402c95e159868cda435a30716d3c4d36b4 (diff)
downloadorg.eclipse.ecf-8d21db84a4d2bc5fb8e9866d82043d5ffaf124fe.tar.gz
org.eclipse.ecf-8d21db84a4d2bc5fb8e9866d82043d5ffaf124fe.tar.xz
org.eclipse.ecf-8d21db84a4d2bc5fb8e9866d82043d5ffaf124fe.zip
added simple method to return the length of inserted text, computed as (String)text.length()
-rw-r--r--framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/messages/UpdateMessage.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/messages/UpdateMessage.java b/framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/messages/UpdateMessage.java
index 154582d11..5333f7ecd 100644
--- a/framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/messages/UpdateMessage.java
+++ b/framework/bundles/org.eclipse.ecf.docshare/src/org/eclipse/ecf/docshare/messages/UpdateMessage.java
@@ -60,6 +60,10 @@ public class UpdateMessage extends Message {
return text;
}
+ public int getLengthOfInsertedText() {
+ return this.text.length();
+ }
+
public String toString() {
StringBuffer buf = new StringBuffer("UpdateMessage["); //$NON-NLS-1$
buf.append("text=").append(text).append(";offset=").append(offset); //$NON-NLS-1$ //$NON-NLS-2$

Back to the top