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,
                                                     IXtextBslModuleFixProvider provider,
                                                     IDtProject dtProject)
        Creates quick fix context
        Parameters:
        targetModuleUri - the module URI, cannot be null
        issue - the IssueImpl 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
      • getModel

        public IXtextBslModuleFixModel getModel​(IFixSession session,
                                                boolean isInteractive)
        Provides the model IXtextBslModuleFixModel for quick fix
        Parameters:
        session - IFixSession, cannot be null
        isInteractive - true if quick fix supports inbteractive (UI) model, false otherwise
        Returns:
        model IXtextBslModuleFixModel, never null