Class BslQuickfixProvider

java.lang.Object
org.eclipse.xtext.ui.editor.quickfix.AbstractDeclarativeQuickfixProvider
org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider
com._1c.g5.v8.dt.bsl.ui.quickfix.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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>>
    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
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BslQuickfixProvider

      public BslQuickfixProvider()
  • Method Details

    • 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
    • getExternalMethods

      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
      Parameters:
      issueCode - code of the fixing error, can't be null
      Returns:
      all Method from all registered AbstractExternalQuickfixProvider with fix code equals to issueCode, never null
    • 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