Class SingleVariantXtextBslModuleFixContext

  • All Implemented Interfaces:
    IFixContext

    public class SingleVariantXtextBslModuleFixContext
    extends BasicFixContext
    Single-variant xtext module quick fix context
    • Constructor Detail

      • SingleVariantXtextBslModuleFixContext

        public SingleVariantXtextBslModuleFixContext​(org.eclipse.emf.common.util.URI targetModuleUri,
                                                     org.eclipse.xtext.validation.Issue.IssueImpl issue,
                                                     org.eclipse.xtext.ui.editor.model.edit.IModificationContext modificationContext,
                                                     IXtextBslModuleFixProvider provider,
                                                     IDtProject dtProject)
        Creates quick fix context
        Parameters:
        targetModuleUri - the module URI, cannot be null
        issue - the IssueImpl instance, cannot be null
        modificationContext - the IModificationContext instance, cannot be null
        provider - the IXtextBslModuleFixProvider instance, cannot be null
        dtProject - the DT project, cannot be null
    • Method Detail

      • getTargetModuleUri

        public org.eclipse.emf.common.util.URI getTargetModuleUri()
        Provides the target module URI
        Returns:
        the targetModuleUri, never null
      • getIssue

        public org.eclipse.xtext.validation.Issue.IssueImpl getIssue()
        Provides the IssueImpl for quick fix
        Returns:
        xtext issue, never null
      • getModificationContext

        public org.eclipse.xtext.ui.editor.model.edit.IModificationContext getModificationContext()
        Provides the IModificationContext for quick fix
        Returns:
        xtext modification context, never null
      • getModel

        public IXtextBslModuleFixFacade getModel​(org.eclipse.emf.ecore.EObject element)
        Provides the model IXtextBslModuleFixFacade for quick fix
        Parameters:
        element - the element being examined, cannot be null
        Returns:
        model IXtextBslModuleFixFacade, never null