Community
Participate
Working Groups
3.3 M6 The new word movement listener uses the following movement constants: * @see SWT#MOVEMENT_WORD * @see SWT#MOVEMENT_WORD_END * @see SWT#MOVEMENT_WORD_START * @see SWT#MOVEMENT_CHAR * @see SWT#MOVEMENT_CLUSTER which are not clearly specified. Better Javadoc as outlined in the sample 138579 in bug comment 16 has to be added. E.g. when reading: /** * The cluster movement type (value is 1<<1). * * @see org.eclipse.swt.graphics.TextLayout#getNextOffset(int, int) * @see org.eclipse.swt.graphics.TextLayout#getPreviousOffset(int, int) * * @since 3.0 */ public static final int MOVEMENT_CLUSTER = 1 << 1; I have no clue what this does.
fixed in head > 20070530
>fixed in head > 20070530 Could not see any improvements in I20070531-0010.
The new doc is in SWT class. I have now also added a couple more @see tags to the addWordMovementListener and removeWordMovementListener methods in StyledText and the MovementListener and MovementEvent classes so that a bit more navigating can take you to the new doc in SWT class. Hope this helps.
I can see the additional comments but I would have hoped it would also contain the text/examples that Felipe gave in bug 138579 comment 16, e.g. /* This method is called: * word next (control right-arrow) * select word next (control shift right-arrow) * delete next word (control delete) */ case SWT.MOVEMENT_WORD:
That comment is StyledText related. It would be wrong to have that kind of comment on SWT.java, specially because the constant is also used in TextLayout. Dani, I will add more doc to MovementListener and MovementEvent as we had agreed on.
Thanks a bunch Felipe.