Class StringLiteralProposalProviderSetParameterValue
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.ui.contentassist.stringliteral.AbstractStringLiteralProposalProvider
-
- com._1c.g5.v8.dt.dcs.ui.bsl.stringliterals.StringLiteralProposalProviderSetParameterValue
-
- All Implemented Interfaces:
IStringLiteralProposalProvider
,IStringLiteralProposalProviderExtension
,IStringLiteralHyperlinkProvider
,IAvailableStringLiteralProvider
,IAvailableStringLiteralProviderExtension
,IAvailableStringLiteralProviderImportedNamesExtension
public class StringLiteralProposalProviderSetParameterValue extends AbstractStringLiteralProposalProvider
Compute proposals for bsl method "SetParameterValue"
Extension point "StringLiteralProposals"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StringLiteralProposalProviderSetParameterValue.CustomDcsAppearanceParameters
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.bsl.ui.contentassist.stringliteral.IStringLiteralProposalProvider
IStringLiteralProposalProvider.IBslStringLiteralProposalImageProvider
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bsl.ui.contentassist.stringliteral.AbstractStringLiteralProposalProvider
DELIMETER, EXTERNAL_DATA_PROCESSOR_REFERENCE, EXTERNAL_REPORT_REFERENCE, FORM
-
-
Constructor Summary
Constructors Constructor Description StringLiteralProposalProviderSetParameterValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.eclipse.xtext.util.Triple<String,String,IStringLiteralProposalProvider.IBslStringLiteralProposalImageProvider>>
computeProposals(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context, String content, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService, boolean isRussian)
Computes all proposals forStringLiteral
in Bls languageCollection<org.eclipse.xtext.naming.QualifiedName>
getExportedName(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
Gets imported names provided by string literalsList<org.eclipse.xtext.resource.IReferenceDescription>
getReferenceDescriptions(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
Gets reference descriptions by string literalsboolean
isAppropriate(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context)
Checks context for availability of proposalsboolean
isCorrectValue(String content, org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService)
Checks that content of theStringLiteral
correct in this context.-
Methods inherited from class com._1c.g5.v8.dt.bsl.ui.contentassist.stringliteral.AbstractStringLiteralProposalProvider
addQuoteToBegin, checkForTypeCommonMethod, checkForTypeCommonMethod, checkForTypeMdObjectMethod, checkForTypeMdObjectMethod, checkForTypeMethod, checkForTypeMethod, computeProposals, computeProposalsForMdObject, createHyperlinks, createHyperlinks, createHyperlinksForAllReferences, createHyperlinksForFormModule, createProposalsBaseType, createProposalsBySegments, createProposalsBySegments, createProposalsForCommonMdObjects, getActualFeatureByType, getActualMdObjectByType, getAllChildMdObjects, getFilterScope, getReference, getReferenceDescriptionForMdObject, getReferenceDescriptionsCommonMdObjects, getScope, getTypeOfPreviousElement, hasHyperlinks, isAppropriate, isMetaType, startWith, validate
-
-
-
-
Method Detail
-
isAppropriate
public boolean isAppropriate(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context)
Description copied from interface:IAvailableStringLiteralProviderExtension
Checks context for availability of proposals- Parameters:
context
- contains- parentObject object contains string literal in its parameters
- allExpr all parameters of
parentObject
- paramNumber number of string literal in parameter method's list
- Returns:
true
if proposals available for this context
-
computeProposals
public List<org.eclipse.xtext.util.Triple<String,String,IStringLiteralProposalProvider.IBslStringLiteralProposalImageProvider>> computeProposals(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context, String content, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService, boolean isRussian)
Description copied from interface:IStringLiteralProposalProviderExtension
Computes all proposals forStringLiteral
in Bls language- Specified by:
computeProposals
in interfaceIStringLiteralProposalProviderExtension
- Specified by:
computeProposals
in classAbstractStringLiteralProposalProvider
- Parameters:
context
- contains- parentObject object contains string literal in its parameters
- allExpr all parameters of
parentObject
- paramNumber number of string literal in parameter method's list
null
content
- content of the string literal, can't benull
scopeProvider
- actualIScopeProvider
, can't benull
slicePredicateService
- actualIIndexSlicePredicateService
, can't benull
isRussian
- flag of actual language- Returns:
- information about proposal
- content of proposal
- name of proposal
IStringLiteralProposalProvider.IBslStringLiteralProposalImageProvider
for getting image to proposal
null
-
isCorrectValue
public boolean isCorrectValue(String content, org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, IIndexSlicePredicateService slicePredicateService)
Description copied from interface:IAvailableStringLiteralProviderExtension
Checks that content of theStringLiteral
correct in this context. Checks onlyStringLiteral
in one line.- Specified by:
isCorrectValue
in interfaceIAvailableStringLiteralProviderExtension
- Overrides:
isCorrectValue
in classAbstractStringLiteralProposalProvider
- Parameters:
content
- content of theStringLiteral
without quote, can't benull
context
- contains- parentObject object contains string literal in its parameters
- allExpr all parameters of
parentObject
- paramNumber number of string literal in parameter method's list
null
scopeProvider
- actualIScopeProvider
, can't benull
slicePredicateService
- actualIIndexSlicePredicateService
, can't benull
- Returns:
true
if content of theStringLiteral
correct in this context,false
otherwise
-
getExportedName
public Collection<org.eclipse.xtext.naming.QualifiedName> getExportedName(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
Description copied from interface:IAvailableStringLiteralProviderImportedNamesExtension
Gets imported names provided by string literals- Parameters:
context
- contains- parentObject object contains string literal in its parameters
- allExpr all parameters of
parentObject
- paramNumber number of string literal in parameter method's list
- Returns:
- found imported names or empty collection if string literal doesn't provide anything imported names
-
getReferenceDescriptions
public List<org.eclipse.xtext.resource.IReferenceDescription> getReferenceDescriptions(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,List<Expression>,Integer> context, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
Description copied from interface:IAvailableStringLiteralProviderImportedNamesExtension
Gets reference descriptions by string literals- Parameters:
context
- contains- parentObject object contains string literal in its parameters
- allExpr all parameters of
parentObject
- paramNumber number of string literal in parameter method's list
- Returns:
- reference descriptions or empty list if string literal doesn't provide anything reference descriptions, never
null
-
-