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 Deprecated Methods 
      Modifier and Type Method Description
      void createFucntion​(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
      Deprecated.
      Use IFix instead
      void createMethod​(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
      Deprecated.
      Use IFix instead
      void createVariable​(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
      Deprecated.
      Use IFix instead
      void fixWrongSignatureInextensionMethod​(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
      Deprecated.
      Use IFix instead
      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

        @Deprecated
        public void createMethod​(org.eclipse.xtext.validation.Issue issue,
                                 org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
        Deprecated.
        Use IFix instead
        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

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

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

        @Deprecated
        public void fixWrongSignatureInextensionMethod​(org.eclipse.xtext.validation.Issue issue,
                                                       org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
        Deprecated.
        Use IFix instead
        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