Class SingleVariantXtextBslModuleFix

    • Constructor Detail

      • SingleVariantXtextBslModuleFix

        public SingleVariantXtextBslModuleFix()
    • Method Detail

      • onRegistration

        public final void onRegistration​(FixDescriptor registrationContext)
        Description copied from interface: IFix
        This method is being called by the fix engine during the initialization phase. The developer may register additional fix entitier, like context factories, fix change processors, preview providers which are specific only to this fix
        Parameters:
        registrationContext - The descriptor of the fix. A fix developer should use it to register fix specific components. May not be null
      • getRequiredContextType

        public Class<SingleVariantXtextBslModuleFixContext> getRequiredContextType()
        Description copied from interface: IFix
        Gets the required context type
        Returns:
        The type of the context that is required by the fix variant to work. May not be null
      • configureFix

        protected void configureFix​(SingleVariantXtextBslModuleFix.FixConfigurer configurer)
        Configures the fix. The developer could provide descreptive/filtering information for the fix here
        Parameters:
        configurer - The configurer of the fix. May not be null
      • fixIssue

        protected abstract org.eclipse.text.edits.TextEdit fixIssue​(org.eclipse.xtext.resource.XtextResource state,
                                                                    IXtextBslModuleFixModel model)
                                                             throws org.eclipse.jface.text.BadLocationException
        Modification of code to be overriden by clients
        Parameters:
        state - the xtext resource, cannot be null
        model - xtext bsl module fix model facade, cannot be null
        Returns:
        TextEdit, can be null
        Throws:
        org.eclipse.jface.text.BadLocationException