diff options
author | Felipe Heidrich <fheidric> | 2007-05-30 20:45:27 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2007-05-30 20:45:27 +0000 |
commit | 4094b3a0b5ef244043c55010ff8191319fcda74e (patch) | |
tree | 26cd2497b618a244f84ede2fdea2f7921705721f /bundles | |
parent | 055460175a28535b106f7bd62a86c5fc49bc207c (diff) | |
download | eclipse.platform.swt-4094b3a0b5ef244043c55010ff8191319fcda74e.tar.gz eclipse.platform.swt-4094b3a0b5ef244043c55010ff8191319fcda74e.tar.xz eclipse.platform.swt-4094b3a0b5ef244043c55010ff8191319fcda74e.zip |
Bug 178758 SWT.MOVEMENT_* needs better Javadoc
Diffstat (limited to 'bundles')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SWT.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SWT.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SWT.java index 48bb0f6455..87054a2605 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SWT.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SWT.java @@ -3291,6 +3291,7 @@ public class SWT { /** * The character movement type (value is 1<<0). + * This constant is used to move a text offset over a character. * * @see org.eclipse.swt.graphics.TextLayout#getNextOffset(int, int) * @see org.eclipse.swt.graphics.TextLayout#getPreviousOffset(int, int) @@ -3301,6 +3302,10 @@ public class SWT { /** * The cluster movement type (value is 1<<1). + * This constant is used to move a text offset over a cluster. + * A cluster groups one or more characters. A cluster is + * undivisible, this means that a caret offset can not be placed in the + * middle of a cluster. * * @see org.eclipse.swt.graphics.TextLayout#getNextOffset(int, int) * @see org.eclipse.swt.graphics.TextLayout#getPreviousOffset(int, int) @@ -3311,6 +3316,12 @@ public class SWT { /** * The word movement type (value is 1<<2). + * This constant is used to move a text offset over a word. + * The behavior of this constant depends on the platform and on the + * direction of the movement. For example, on Windows the stop is + * always at the start of the word. On GTK and Mac the stop is at the end + * of the word if the direction is next and at the start of the word if the + * direction is previous. * * @see org.eclipse.swt.graphics.TextLayout#getNextOffset(int, int) * @see org.eclipse.swt.graphics.TextLayout#getPreviousOffset(int, int) @@ -3321,6 +3332,9 @@ public class SWT { /** * The word end movement type (value is 1<<3). + * This constant is used to move a text offset to the next or previous + * word end. The behavior of this constant does not depend on the platform. + * * * @see org.eclipse.swt.graphics.TextLayout#getNextOffset(int, int) * @see org.eclipse.swt.graphics.TextLayout#getPreviousOffset(int, int) @@ -3331,6 +3345,8 @@ public class SWT { /** * The word start movement type (value is 1<<4). + * This constant is used to move a text offset to the next or previous + * word start. The behavior of this constant does not depend on the platform. * * @see org.eclipse.swt.graphics.TextLayout#getNextOffset(int, int) * @see org.eclipse.swt.graphics.TextLayout#getPreviousOffset(int, int) |