diff options
author | Veronika Irvine <veronika> | 2005-12-13 17:21:10 +0000 |
---|---|---|
committer | Veronika Irvine <veronika> | 2005-12-13 17:21:10 +0000 |
commit | cbd923bc646c0465f5fc2badd76cadf1e36906e2 (patch) | |
tree | a849cfc0940e1fccfc7d0bf4f398a1ceea47eac3 /examples | |
parent | a3892f39b8814ef2ec23f547ed8c72f8e26165df (diff) | |
download | eclipse.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.java | 7 |
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; |