[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| [eclipse-pmc] API change request - bug 138579 | 
In order to fix bug 138579 we need to add API to:
SWT:
        /**
         * The word end movement type (value is 1<<3).
         * 
         * @see org.eclipse.swt.graphics.TextLayout#getNextOffset(int, 
int)
         * @see org.eclipse.swt.graphics.TextLayout#getPreviousOffset(int, 
int)
         * 
         * @since 3.3
         */ 
        public static final int MOVEMENT_WORD_END = 1 << 3;
        /**
         * The word start movement type (value is 1<<4).
         * 
         * @see org.eclipse.swt.graphics.TextLayout#getNextOffset(int, 
int)
         * @see org.eclipse.swt.graphics.TextLayout#getPreviousOffset(int, 
int)
         * 
         * @since 3.3
         */ 
        public static final int MOVEMENT_WORD_START = 1 << 4;
To StyledText
/** 
 * Adds a word movement listener. A movement event is sent when the 
boundary 
 * of a word is needed. For example, this occurs during word next and word 
 * previous actions.
 *
 * @param movementListener the listener
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that 
created the receiver</li>
 * </ul>
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT when listener is null</li>
 * </ul>
 * 
 * @since 3.3 
 */
public void addWordMovementListener(MovementListener movementListener) {
/**
 * Removes the specified word movement listener.
 *
 * @param listener the listener
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that 
created the receiver</li>
 * </ul>
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT when listener is null</li>
 * </ul>
 * 
 * @since 3.3
 */
public void removeWordMovementListener(MovementListener listener) {
Add two classes to the package org.eclipse.swt.custom
Felipe
Attachment:
MovementEvent.java
Description: Binary data
Attachment:
MovementListener.java
Description: Binary data