org.eclipse.gmf.tooling.runtime.directedit
Class TextDirectEditManager2
java.lang.Object
org.eclipse.gef.tools.DirectEditManager
org.eclipse.gmf.tooling.runtime.directedit.DirectEditManagerBase
org.eclipse.gmf.tooling.runtime.directedit.TextDirectEditManager2
public class TextDirectEditManager2
- extends DirectEditManagerBase
- Author:
- melaasar
|
Constructor Summary |
TextDirectEditManager2(org.eclipse.gef.GraphicalEditPart source,
Class editorType,
org.eclipse.gef.tools.CellEditorLocator locator)
|
TextDirectEditManager2(org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart source)
constructor |
|
Method Summary |
protected void |
bringDown()
|
protected void |
createContentAssistant(org.eclipse.swt.widgets.Control control,
org.eclipse.swt.graphics.Color proposalPopupForegroundColor,
org.eclipse.swt.graphics.Color proposalPopupBackgroundColor,
org.eclipse.jface.text.contentassist.IContentAssistProcessor processor)
|
protected org.eclipse.jface.viewers.CellEditor |
doCreateCellEditorOn(org.eclipse.swt.widgets.Composite composite)
|
static Class |
getTextCellEditorClass(org.eclipse.gef.GraphicalEditPart source)
Deprecated. to override the cell editor class, use
DirectEditManagerBase.createCellEditorOn(Composite), this provides the
flexibility necessary to initialize the cell editor with a
style. |
static org.eclipse.gef.tools.CellEditorLocator |
getTextCellEditorLocator(org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart source)
|
protected void |
initCellEditor()
|
void |
setEditText(String toEdit)
This method is used to set the cell editors text |
| Methods inherited from class org.eclipse.gmf.tooling.runtime.directedit.DirectEditManagerBase |
commit, createCellEditorOn, getCellEditorLocator, getResourceManager, getScaledFont, hookListeners, setCellEditor, show, show, show, showFeedback, unhookListeners |
| Methods inherited from class org.eclipse.gef.tools.DirectEditManager |
createDirectEditRequest, eraseFeedback, getCellEditor, getDirectEditFeature, getDirectEditRequest, getEditPart, getLocator, handleValueChanged, isDirty, setDirty, setEditPart, setLocator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextDirectEditManager2
public TextDirectEditManager2(org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart source)
- constructor
- Parameters:
source - GraphicalEditPart to support direct edit of. The
figure of the source edit part must be of type
WrapLabel.
TextDirectEditManager2
public TextDirectEditManager2(org.eclipse.gef.GraphicalEditPart source,
Class editorType,
org.eclipse.gef.tools.CellEditorLocator locator)
- Parameters:
source - editorType - locator -
getTextCellEditorLocator
public static org.eclipse.gef.tools.CellEditorLocator getTextCellEditorLocator(org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart source)
- Parameters:
source - the ITextAwareEditPart to determine the cell
editor for
- Returns:
- the
CellEditorLocator that is appropriate for the
source EditPart
getTextCellEditorClass
public static Class getTextCellEditorClass(org.eclipse.gef.GraphicalEditPart source)
- Deprecated. to override the cell editor class, use
DirectEditManagerBase.createCellEditorOn(Composite), this provides the
flexibility necessary to initialize the cell editor with a
style.
- Parameters:
source - the GraphicalEditPart that is used to determine
which CellEditor class to use.
- Returns:
- the
Class of the CellEditor to use for
the text editing.
doCreateCellEditorOn
protected org.eclipse.jface.viewers.CellEditor doCreateCellEditorOn(org.eclipse.swt.widgets.Composite composite)
- Specified by:
doCreateCellEditorOn in class DirectEditManagerBase
setEditText
public void setEditText(String toEdit)
- This method is used to set the cell editors text
- Overrides:
setEditText in class DirectEditManagerBase
- Parameters:
toEdit - String to be set in the cell editor
createContentAssistant
protected void createContentAssistant(org.eclipse.swt.widgets.Control control,
org.eclipse.swt.graphics.Color proposalPopupForegroundColor,
org.eclipse.swt.graphics.Color proposalPopupBackgroundColor,
org.eclipse.jface.text.contentassist.IContentAssistProcessor processor)
- Specified by:
createContentAssistant in class DirectEditManagerBase
initCellEditor
protected void initCellEditor()
- Overrides:
initCellEditor in class DirectEditManagerBase
bringDown
protected void bringDown()
- Overrides:
bringDown in class DirectEditManagerBase
- See Also:
DirectEditManager.bringDown()
Copyright © 2012. All Rights Reserved.