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
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
createFucntion
(org.eclipse.xtext.validation.Issue issue, org.eclipse.xtext.ui.editor.quickfix.IssueResolutionAcceptor acceptor) Deprecated.void
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
Methods inherited from class org.eclipse.xtext.ui.editor.quickfix.AbstractDeclarativeQuickfixProvider
collectMethods, getFixMethodPredicate, getFixMethods, getIssueResolutionAcceptorProvider, setIssueResolutionAcceptorProvider
-
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.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
- 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
-
getResolutions
protected List<org.eclipse.xtext.ui.editor.quickfix.IssueResolution> getResolutions(org.eclipse.xtext.validation.Issue issue, List<Method> fixMethods) - Overrides:
getResolutions
in classorg.eclipse.xtext.ui.editor.quickfix.AbstractDeclarativeQuickfixProvider
-
IFix
instead