|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.tools.DirectEditManager
org.eclipse.gmf.tooling.runtime.directedit.DirectEditManagerBase
public abstract class DirectEditManagerBase
Constructor Summary | |
---|---|
DirectEditManagerBase(org.eclipse.gef.GraphicalEditPart source,
Class editorType,
org.eclipse.gef.tools.CellEditorLocator locator)
|
|
DirectEditManagerBase(org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart source)
|
Method Summary | |
---|---|
protected void |
bringDown()
|
protected void |
commit()
|
protected org.eclipse.jface.viewers.CellEditor |
createCellEditorOn(org.eclipse.swt.widgets.Composite composite)
This method is overridden so that the editor class can have a style as the style needs to be passed into the editor class when it is created. |
protected abstract 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 abstract org.eclipse.jface.viewers.CellEditor |
doCreateCellEditorOn(org.eclipse.swt.widgets.Composite composite)
|
static org.eclipse.gef.tools.CellEditorLocator |
getCellEditorLocator(org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart source)
|
protected org.eclipse.jface.resource.ResourceManager |
getResourceManager()
Gets the resource manager to remember the resources allocated for this graphical viewer. |
protected org.eclipse.swt.graphics.Font |
getScaledFont(org.eclipse.draw2d.IFigure label)
Given a label figure object, this will calculate the correct Font needed to display into screen coordinates, taking into account the current mapmode. |
protected void |
hookListeners()
|
protected void |
initCellEditor()
|
protected void |
setCellEditor(org.eclipse.jface.viewers.CellEditor editor)
|
void |
setEditText(String toEdit)
This method is used to set the cell editors text |
void |
show()
|
void |
show(char initialChar)
Performs show and sets the edit string to be the initial character or string |
void |
show(org.eclipse.swt.graphics.Point location)
Performs show and sends an extra mouse click to the point location so that cursor appears at the mouse click point The Text control does not allow for the cursor to appear at point location but at a character location |
void |
showFeedback()
|
protected void |
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 |
Constructor Detail |
---|
public DirectEditManagerBase(org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart source)
public DirectEditManagerBase(org.eclipse.gef.GraphicalEditPart source, Class editorType, org.eclipse.gef.tools.CellEditorLocator locator)
Method Detail |
---|
protected org.eclipse.jface.viewers.CellEditor createCellEditorOn(org.eclipse.swt.widgets.Composite composite)
editorType
was
passed into the constructor.
createCellEditorOn
in class org.eclipse.gef.tools.DirectEditManager
public static org.eclipse.gef.tools.CellEditorLocator getCellEditorLocator(org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart source)
source
- the ITextAwareEditPart
to determine the cell
editor for
CellEditorLocator
that is appropriate for the
source EditPart
protected org.eclipse.swt.graphics.Font getScaledFont(org.eclipse.draw2d.IFigure label)
label
- the label to use for the font calculation
Font
that is scaled to the screen coordinates.
Note: the returned Font
should not be disposed since
it is cached by a common resource manager.protected void initCellEditor()
initCellEditor
in class org.eclipse.gef.tools.DirectEditManager
protected void commit()
commit
in class org.eclipse.gef.tools.DirectEditManager
DirectEditManager.commit()
protected void bringDown()
bringDown
in class org.eclipse.gef.tools.DirectEditManager
DirectEditManager.bringDown()
public void setEditText(String toEdit)
toEdit
- String to be set in the cell editorpublic void show(char initialChar)
initialChar
- public void show()
show
in class org.eclipse.gef.tools.DirectEditManager
public void show(org.eclipse.swt.graphics.Point location)
location
- protected void hookListeners()
hookListeners
in class org.eclipse.gef.tools.DirectEditManager
protected void unhookListeners()
unhookListeners
in class org.eclipse.gef.tools.DirectEditManager
protected void setCellEditor(org.eclipse.jface.viewers.CellEditor editor)
setCellEditor
in class org.eclipse.gef.tools.DirectEditManager
public void showFeedback()
showFeedback
in class org.eclipse.gef.tools.DirectEditManager
protected org.eclipse.jface.resource.ResourceManager getResourceManager()
protected abstract org.eclipse.jface.viewers.CellEditor doCreateCellEditorOn(org.eclipse.swt.widgets.Composite composite)
protected abstract 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |