Class ExternalQuickfixModification<E extends org.eclipse.emf.ecore.EObject>

  • Type Parameters:
    E - type of model object is contained in Issue
    All Implemented Interfaces:
    org.eclipse.xtext.ui.editor.model.edit.IModification

    public class ExternalQuickfixModification<E extends org.eclipse.emf.ecore.EObject>
    extends Object
    implements org.eclipse.xtext.ui.editor.model.edit.IModification
    Implementation of IModification for creating and applying quickfix text changes.
    • Constructor Detail

      • ExternalQuickfixModification

        public ExternalQuickfixModification​(org.eclipse.xtext.validation.Issue issue,
                                            Class<E> clazz,
                                            com.google.common.base.Function<E,​org.eclipse.text.edits.TextEdit> function)
        Constructor
        Parameters:
        issue - processing validation Issue, can't be null
        clazz - Class of the Built-in object corresponding to validation Issue, can't be null
        function - special Function that contains logic about creating TextEdit changes corresponding to quickfix, can't be null
    • Method Detail

      • apply

        public void apply​(org.eclipse.xtext.ui.editor.model.edit.IModificationContext context)
                   throws Exception
        Specified by:
        apply in interface org.eclipse.xtext.ui.editor.model.edit.IModification
        Throws:
        Exception