Interface IXtextAwareEditPart

All Superinterfaces:
org.eclipse.gef.EditPart, org.eclipse.gef.GraphicalEditPart, IAdaptable, org.eclipse.gmf.runtime.diagram.ui.editparts.IEditableEditPart, org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart
All Known Implementing Classes:
ExternalXtextLabelEditPart, XtextLabelEditPart

public interface IXtextAwareEditPart extends org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart
Implemented by EditParts, which contain text that should be edited via Xtext. The interface provides a subset of the methods delivered by ITextAwareEditPart.
  • Field Summary

    Fields inherited from interface org.eclipse.gef.EditPart

    SELECTED, SELECTED_NONE, SELECTED_PRIMARY
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the text to edit
    void
    Called when edit text was modified and edit part should update itself to reflect the changes.

    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.gef.GraphicalEditPart

    addNodeListener, getContentPane, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint

    Methods inherited from interface org.eclipse.core.runtime.IAdaptable

    getAdapter

    Methods inherited from interface org.eclipse.gmf.runtime.diagram.ui.editparts.IEditableEditPart

    disableEditMode, enableEditMode, isEditModeEnabled

    Methods inherited from interface org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart

    findEditPart, getChildBySemanticHint, getDiagramEditDomain, getDiagramPreferencesHint, getEditingDomain, getNotationView, getPreferredValue, getPrimaryChildEditPart, getPrimaryView, getStructuralFeatureValue, getTopGraphicEditPart, resolveSemanticElement, setStructuralFeatureValue
  • Method Details

    • getEditText

      String getEditText()
      Returns the text to edit
    • setLabelText

      void setLabelText(String text)
      Called when edit text was modified and edit part should update itself to reflect the changes.