Bug 39074 [CellEditors] [DBCS] canna input mode fires bogus event from Text Control
Steps: 1)Create simple file named foo.usr. 2)Open the propertysheet example editor on this file. 3)Select a department (or group or whatever) and go to edit the name of that object in the propertysheet 4) Shift+SPACE to enter canno input mode. 5) Type "nihongo" and press ENTER When you press ENTER, the propertysheet receives either a bogus widgetDefaultSelected event, or a bogus focusLost event. In either case, the entered canna text is lost. This affects anyone who displays a popup celleditor and is interested in the events mentioned above. This bug affects multiple GEF clients in WSAD
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TextCellEditor.java
import org.eclipse.swt.widgets.Text;
import org.eclipse.jface.util.Assert;
/**
 * A cell editor that manages a text entry field.
 * The cell editor's value is the text string itself.
 * <p>
 * This class may be instantiated; it is not intended to be subclassed.
 * </p>
 */
public class TextCellEditor extends CellEditor {
	/**
	 * The text control; initially <code>null</code>.
	 */
	protected Text text;
	private ModifyListener modifyListener;
	/**
	 * State information for updating action enablement
	 */
	private boolean isSelection = false;
	private boolean isDeleteable = false;
	private boolean isSelectable = false;
	
	/**
	 * Default TextCellEditor style
	 * specify no borders on text widget as cell outline in table already
	 * provides the look of a border.
	 */
	private static final int defaultStyle = SWT.SINGLE;
/**
 * Creates a new text string cell editor with no control