Class MultiTextEdittWithDescription


  • public class MultiTextEdittWithDescription
    extends org.eclipse.text.edits.MultiTextEdit
    Special MultiTextEdit with description for each child element
    • Field Summary

      • Fields inherited from class org.eclipse.text.edits.TextEdit

        CREATE_UNDO, NONE, UPDATE_REGIONS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addChild​(org.eclipse.text.edits.TextEdit edit, String description)
      Add new child textEdit with description
      protected org.eclipse.text.edits.TextEdit doCopy()  
      String getDescription​(org.eclipse.text.edits.TextEdit edit)
      Gets description of the child textEdit
      • Methods inherited from class org.eclipse.text.edits.MultiTextEdit

        accept0, canZeroLengthCover, checkIntegrity, covers, getLength, getOffset
      • Methods inherited from class org.eclipse.text.edits.TextEdit

        accept, acceptChildren, addChild, addChildren, apply, apply, childDocumentUpdated, childRegionUpdated, copy, equals, getChildren, getChildrenSize, getCoverage, getExclusiveEnd, getInclusiveEnd, getParent, getRegion, getRoot, hasChildren, hashCode, isDeleted, moveTree, postProcessCopy, removeChild, removeChild, removeChildren, toString
    • Constructor Detail

      • MultiTextEdittWithDescription

        public MultiTextEdittWithDescription()
        Constructor
      • MultiTextEdittWithDescription

        public MultiTextEdittWithDescription​(org.eclipse.text.edits.MultiTextEdit edit)
        Constructor
        Parameters:
        edit - base MultiTextEdit
    • Method Detail

      • addChild

        public void addChild​(org.eclipse.text.edits.TextEdit edit,
                             String description)
        Add new child textEdit with description
        Parameters:
        edit - new child textEdit, can't be null
        description - description of the textEdit, can be null
      • getDescription

        public String getDescription​(org.eclipse.text.edits.TextEdit edit)
        Gets description of the child textEdit
        Parameters:
        edit - child textEdit, can't be null
        Returns:
        description of the child textEdit or empty, if description wasn't found. Can't be null
      • doCopy

        protected org.eclipse.text.edits.TextEdit doCopy()
        Overrides:
        doCopy in class org.eclipse.text.edits.MultiTextEdit