Package com._1c.g5.v8.dt.bsl.ui.quickfix
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
-
Constructor Summary
Constructors Constructor Description BslQuickfixProvider()
-
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.UseIFix
insteadvoid
createMethod(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
Deprecated.UseIFix
insteadvoid
createVariable(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
Deprecated.UseIFix
insteadvoid
fixWrongSignatureInextensionMethod(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
Deprecated.UseIFix
insteadprotected List<org.eclipse.xtext.util.Pair<Method,AbstractExternalQuickfixProvider>>
getExternalMethods(String issueCode)
Collects allMethod
from all registeredAbstractExternalQuickfixProvider
with fix code equals toissueCode
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
-
-
-
-
Method Detail
-
createMethod
@Deprecated public void createMethod(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
Deprecated.UseIFix
insteadFixes error "Undefined function or procedure" in Bsl module- Parameters:
issue
- actual error issue, can't benull
acceptor
- actualIssueResolutionAcceptor
, can't benull
-
createFucntion
@Deprecated public void createFucntion(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
Deprecated.UseIFix
insteadFixes error "Undefined function" in Bsl module- Parameters:
issue
- actual error issue, can't benull
acceptor
- actualIssueResolutionAcceptor
, can't benull
-
createVariable
@Deprecated public void createVariable(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
Deprecated.UseIFix
insteadFixes error "Undefined variable" in Bsl module- Parameters:
issue
- actual error issue, can't benull
acceptor
- actualIssueResolutionAcceptor
, can't benull
-
fixWrongSignatureInextensionMethod
@Deprecated public void fixWrongSignatureInextensionMethod(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor)
Deprecated.UseIFix
insteadFixes 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 benull
acceptor
- actualIssueResolutionAcceptor
, can't benull
-
hasResolutionFor
public boolean hasResolutionFor(String issueCode)
- Specified by:
hasResolutionFor
in interfaceorg.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider
- Overrides:
hasResolutionFor
in classorg.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider
-
getExternalMethods
protected List<org.eclipse.xtext.util.Pair<Method,AbstractExternalQuickfixProvider>> getExternalMethods(String issueCode)
Collects allMethod
from all registeredAbstractExternalQuickfixProvider
with fix code equals toissueCode
- Parameters:
issueCode
- code of the fixing error, can't benull
- Returns:
- all
Method
from all registeredAbstractExternalQuickfixProvider
with fix code equals toissueCode
, nevernull
-
-