Class BslQuickfixProvider

  • All Implemented Interfaces:
    org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider

    public class BslQuickfixProvider
    extends org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider
    Quickfixes for Bsl
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider

        org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider.CancelableResolutionAcceptor, org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider.CrossRefResolutionConverter
      • Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider

        org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider.NullImpl
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createFucntion​(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
      Fixes error "Undefined function" in Bsl module
      void createMethod​(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
      Fixes error "Undefined function or procedure" in Bsl module
      void createVariable​(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
      Fixes error "Undefined variable" in Bsl module
      void fixWrongSignatureInextensionMethod​(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
      Fixes error "Another method signature than in adoptable method.
      protected List<org.eclipse.xtext.util.Pair<Method,​AbstractExternalQuickfixProvider>> getExternalMethods​(String issueCode)
      Collects all Method from all registered AbstractExternalQuickfixProvider with fix code equals to issueCode
      protected List<org.eclipse.xtext.ui.editor.quickfix.IssueResolution> getResolutions​(org.eclipse.xtext.validation.Issue issue, List<Method> fixMethods)  
      boolean hasResolutionFor​(String issueCode)  
      • Methods inherited from class org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider

        createLinkingIssueResolutions, fixCrossReferenceImage, fixCrossReferenceLabel, getCancelableAcceptor, getCancelManager, getModificationContextFactory, getQualifiedNameConverter, getResolutions, getResolutionsForLinkingIssue, getScopeProvider, getSimilarityMatcher, getUnresolvedEReference, queryScope
      • Methods inherited from class org.eclipse.xtext.ui.editor.quickfix.AbstractDeclarativeQuickfixProvider

        collectMethods, getFixMethodPredicate, getFixMethods, getIssueResolutionAcceptorProvider, setIssueResolutionAcceptorProvider
    • Constructor Detail

      • BslQuickfixProvider

        public BslQuickfixProvider()
    • Method Detail

      • createMethod

        public void createMethod​(org.eclipse.xtext.validation.Issue issue,
                                 org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
        Fixes error "Undefined function or procedure" in Bsl module
        Parameters:
        issue - actual error issue, can't be null
        acceptor - actual IssueResolutionAcceptor, can't be null
      • createFucntion

        public void createFucntion​(org.eclipse.xtext.validation.Issue issue,
                                   org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
        Fixes error "Undefined function" in Bsl module
        Parameters:
        issue - actual error issue, can't be null
        acceptor - actual IssueResolutionAcceptor, can't be null
      • createVariable

        public void createVariable​(org.eclipse.xtext.validation.Issue issue,
                                   org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
        Fixes error "Undefined variable" in Bsl module
        Parameters:
        issue - actual error issue, can't be null
        acceptor - actual IssueResolutionAcceptor, can't be null
      • fixWrongSignatureInextensionMethod

        public void fixWrongSignatureInextensionMethod​(org.eclipse.xtext.validation.Issue issue,
                                                       org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
        Fixes error "Another method signature than in adoptable method. Number of parameters and type (procedure or function) should be equals for adoptable method and its extension" in Bsl module
        Parameters:
        issue - actual error issue, can't be null
        acceptor - actual IssueResolutionAcceptor, can't be null
      • hasResolutionFor

        public boolean hasResolutionFor​(String issueCode)
        Specified by:
        hasResolutionFor in interface org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider
        Overrides:
        hasResolutionFor in class org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider
      • getResolutions

        protected List<org.eclipse.xtext.ui.editor.quickfix.IssueResolution> getResolutions​(org.eclipse.xtext.validation.Issue issue,
                                                                                            List<Method> fixMethods)
        Overrides:
        getResolutions in class org.eclipse.xtext.ui.editor.quickfix.AbstractDeclarativeQuickfixProvider