summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorVeronika Irvine <veronika>2005-12-13 17:21:10 +0000
committerVeronika Irvine <veronika>2005-12-13 17:21:10 +0000
commitcbd923bc646c0465f5fc2badd76cadf1e36906e2 (patch)
treea849cfc0940e1fccfc7d0bf4f398a1ceea47eac3 /examples
parenta3892f39b8814ef2ec23f547ed8c72f8e26165df (diff)
downloadeclipse.platform.swt-cbd923bc646c0465f5fc2badd76cadf1e36906e2.tar.gz
eclipse.platform.swt-cbd923bc646c0465f5fc2badd76cadf1e36906e2.tar.xz
eclipse.platform.swt-cbd923bc646c0465f5fc2badd76cadf1e36906e2.zip
*** empty log message ***
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet212.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet212.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet212.java
index c03ee47abe..e9c2144d70 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet212.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet212.java
@@ -18,8 +18,9 @@ public class Snippet212 {
static StyledText styledText;
static String text =
- "This snippet shows how to embed images in a StyledText. Here is one: \uFFFC, and here is another: \uFFFC. Use the add button" +
- " to add an image from your filesystem to the StyledText at the current caret offset.";
+ "This snippet shows how to embed images in a StyledText.\n"+
+ "Here is one: \uFFFC, and here is another: \uFFFC."+
+ "Use the add button to add an image from your filesystem to the StyledText at the current caret offset.";
static Image[] images;
static int[] offsets;
@@ -52,7 +53,7 @@ public class Snippet212 {
lastOffset = offset + 1;
}
- // use a verify listener to keep the offsets up to data
+ // use a verify listener to keep the offsets up to date
styledText.addVerifyListener(new VerifyListener() {
public void verifyText(VerifyEvent e) {
int start = e.start;