uk.ac.kcl.cch.jb.pliny.parts
Interface IDirectEditablePart

All Superinterfaces:
org.eclipse.gef.EditPart, org.eclipse.gef.GraphicalEditPart, org.eclipse.core.runtime.IAdaptable
All Known Implementing Classes:
LinkableObjectPart, NoteTextPart

public interface IDirectEditablePart
extends org.eclipse.gef.GraphicalEditPart

identifies a GEF EditPart that contains direct-editable text.

Author:
John Bradley
See Also:
PlinyDirectEditManager

Field Summary
 
Fields inherited from interface org.eclipse.gef.EditPart
SELECTED, SELECTED_NONE, SELECTED_PRIMARY
 
Method Summary
 String getTextToEdit()
          requests the edit part to provide the text that is to be direct edited.
 void setupText(org.eclipse.swt.widgets.Text text)
          allows the edit part to specify display attributes to be used while displaying the text for editing.
 
Methods inherited from interface org.eclipse.gef.GraphicalEditPart
addNodeListener, getContentPane, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint
 
Methods inherited from interface org.eclipse.gef.EditPart
activate, addEditPartListener, addNotify, deactivate, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getDragTracker, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

getTextToEdit

public String getTextToEdit()
requests the edit part to provide the text that is to be direct edited.

Returns:
text to be edited.

setupText

public void setupText(org.eclipse.swt.widgets.Text text)
allows the edit part to specify display attributes to be used while displaying the text for editing. This usually involves specifying the colours to be used, and indicating whether the entire text should be initially selected or not.

Parameters:
text - org.eclipse.swt.widgets.Text to be used to manage the text editing.