public class XtextStyledTextCellEditorEx extends XtextStyledTextCellEditor
XtextStyledTextCellEditorCellEditor.LayoutDatatextCOPY, CUT, DELETE, FIND, PASTE, REDO, SELECT_ALL, UNDO| Constructor and Description |
|---|
XtextStyledTextCellEditorEx(int style,
com.google.inject.Injector injector) |
XtextStyledTextCellEditorEx(int style,
com.google.inject.Injector injector,
IXtextFakeContextResourcesProvider contextResourcesProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
deactivate() |
protected void |
doSetValue(java.lang.Object value)
The
TextCellEditor implementation of this
CellEditor framework method accepts a text string (type
String). |
boolean |
hasValueChanged() |
boolean |
isDeactivationLocked()
Returns true if deactivation has been locked
|
void |
setDeactivationLock(boolean deactivationLock)
Sets deactivation lock so that the cell editor does not perform
deactivate
|
void |
setValueAndProcessEditOccured(java.lang.Object value)
This will be used when an edit has occurred by a ModifyEvent has been
been send.
|
createCompletionProposalAdapter, createControl, createMenuManager, createXtextAdapter, dependsOnExternalFocusListener, dispose, focusLost, getCompletionProposalAdapter, getContextFakeResourceProvider, getInjector, getXtextAdapter, initContextMenu, isFindEnabled, isIgnoreNextFocusLost, isRedoEnabled, isUndoEnabled, keyReleaseOccured, performRedo, performUndo, setIgnoreNextFocusLost, setVisibleRegioncreateStyledText, doGetValue, doSetFocus, editOccured, getLayoutData, getVerifyKeyListener, handleDefaultSelection, isCopyEnabled, isCutEnabled, isDeleteEnabled, isPasteEnabled, isSaveAllEnabled, isSelectAllEnabled, performCopy, performCut, performDelete, performPaste, performSelectAllactivate, activate, addListener, addPropertyChangeListener, create, deactivate, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, getControl, getDoubleClickTimeout, getErrorMessage, getStyle, getValidator, getValue, isActivated, isCorrect, isDirty, isValueValid, markDirty, performFind, removeListener, removePropertyChangeListener, setErrorMessage, setFocus, setStyle, setValidator, setValue, setValueValid, valueChangedpublic XtextStyledTextCellEditorEx(int style,
com.google.inject.Injector injector,
IXtextFakeContextResourcesProvider contextResourcesProvider)
public XtextStyledTextCellEditorEx(int style,
com.google.inject.Injector injector)
public void setValueAndProcessEditOccured(java.lang.Object value)
value - Value to set the cell editor to.
Note: This happens address defect RATLC00522324. For our
topgraphical edit parts we delegate the direct edit request to
a primary edit part and set focus on that. The issue is that
if the user has typed in an initial character when setting
focus to the edit part, which typically is a
TextCompartmentEditPart then setting that initial value does
not fire the necessary change events that need to occur in
order for that value to be recognized. If you don't use this
method then the result is that if you just type in the initial
character and that is it then the text compartment loses focus
then the value will not be saved. This is because setting the
value of the cell doesn't think its value has changed since
the first character is not recognized as a change.protected void doSetValue(java.lang.Object value)
StyledTextCellEditorTextCellEditor implementation of this
CellEditor framework method accepts a text string (type
String).doSetValue in class XtextStyledTextCellEditorvalue - a text string (type String)public boolean hasValueChanged()
public void deactivate()
deactivate in class CellEditorpublic boolean isDeactivationLocked()
public void setDeactivationLock(boolean deactivationLock)
deactivationLock -