Class GraphicalSchemeStringLiteralProposalProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.ui.contentassist.stringliteral.AbstractStringLiteralProposalProvider
-
- com._1c.g5.v8.dt.bp.scheme.ui.contentassist.stringliteral.GraphicalSchemeStringLiteralProposalProvider
-
- All Implemented Interfaces:
IStringLiteralProposalProvider
,IStringLiteralProposalProviderExtension
,IStringLiteralHyperlinkProvider
,IAvailableStringLiteralProvider
,IAvailableStringLiteralProviderExtension
,IAvailableStringLiteralProviderImportedNamesExtension
public class GraphicalSchemeStringLiteralProposalProvider extends AbstractStringLiteralProposalProvider
Compute proposals for bsl method "PredefinedValue"
-
-
Nested Class Summary
-
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 GraphicalSchemeStringLiteralProposalProvider()
-
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 proposals-
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, isCorrectValue, 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
-
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
-
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
-
-