Class QlProposalProvider
- java.lang.Object
-
- org.eclipse.xtext.ui.editor.contentassist.AbstractCompletionProposalFactory
-
- org.eclipse.xtext.ui.editor.contentassist.AbstractContentProposalProvider
-
- org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider
-
- com._1c.g5.v8.dt.ql.ui.contentassist.AbstractQlProposalProvider
-
- com._1c.g5.v8.dt.ql.ui.contentassist.QlProposalProvider
-
- All Implemented Interfaces:
org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalFactory
,org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider
- Direct Known Subclasses:
AbstractQlDcsProposalProvider
,AbstractRightQlProposalProvider
public class QlProposalProvider extends AbstractQlProposalProvider
This class defines proposals for Ql language See http://www.eclipse.org/Xtext/documentation.html#contentAssist on how to customize content assistant
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider
org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider.DefaultProposalCreator, org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider.ReferenceProposalCreator
-
Nested classes/interfaces inherited from class org.eclipse.xtext.ui.editor.contentassist.AbstractContentProposalProvider
org.eclipse.xtext.ui.editor.contentassist.AbstractContentProposalProvider.DefaultContentAssistProcessorSwitch, org.eclipse.xtext.ui.editor.contentassist.AbstractContentProposalProvider.NullSafeCompletionProposalAcceptor
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
allowedAnotherRule
protected boolean
allowedInFilter
protected Set<String>
filter
protected boolean
isRussian
protected org.eclipse.emf.ecore.EObject
lastObject
protected QlParametersFinder
parametersFinder
-
Constructor Summary
Constructors Constructor Description QlProposalProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
allowedKeywordProposalLang(String keyword)
Check language of keywordvoid
complete_AbstractExpression(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.RuleCall ruleCall, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for all type of expressionvoid
complete_IDENT_SPEC_MULTI(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.RuleCall ruleCall, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals forMultiPartCommonExpression
void
complete_IDENT_SPEC_MULTI_TABLE(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.RuleCall ruleCall, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals forMultiPartQuerySchemaTable
void
complete_ParameterExpression(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.RuleCall ruleCall, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals forParameterExpression
void
complete_QuerySchemaTableForUpdate(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.RuleCall ruleCall, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
void
completeAbstractQuerySchemaSource_Alias(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for writing alias of section 'FROM'void
completeAbstractQuerySchemaTable_TableName(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for table namevoid
completeAbstractQuerySchemaTableWithoutServiceWords_TableName(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for table namevoid
completeBracketCommonExpression_Content(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for common expressionvoid
completeCaseOperationExpression_Body(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for body of 'CASE' expressionvoid
completeCastOperationExpression_TypeCast(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for type of 'CAST' expressionvoid
completeCommonExpression_Content(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for common expressionvoid
completeFieldWithCasting_Table(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
proposals forFieldWithCasting
void
completeFunctionInvocationExpression_FunctionType(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for functionsvoid
completeInExpression_Query(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for 'IN' expression with nested queryvoid
completeKeyword(org.eclipse.xtext.Keyword keyword, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext contentAssistContext, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Filtering keyword proposalsvoid
completeParameterExpression_Name(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals forParameterExpression
void
completeQuerySchema_Queries(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for start queryvoid
completeQuerySchemaAnythingExpression_Expression(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for all type of expressionvoid
completeQuerySchemaSource_Source(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for creating source section of queryvoid
completeQuerySchemaTableParameter_Expression(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals forQuerySchemaTableParameter
void
completeQuerySchemaTotalControlPoint_PeriodAdditionBegin(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals for 'begin' parameters of periods inQuerySchemaTotalControlPoint
void
completeQuerySchemaTotalControlPoint_PeriodAdditionEnd(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals for 'end' parameters of periods inQuerySchemaTotalControlPoint
void
completeQuerySchemaTotalControlPoint_Periods(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for 'PERIODS' in 'TOTALS'void
completeTopSelector_SelectFields(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
void
completeTypeLiteralExpression_Table(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals forTypeLiteralExpression
void
completeValueLiteralExpression_Values(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals forValueLiteralExpression
protected void
createLinkedModeModel(org.eclipse.xtext.ui.editor.model.IXtextDocument doc, org.eclipse.jface.text.link.LinkedPosition[] linkedPos, int stopPos, org.eclipse.jface.text.ITextViewer viewer, String text)
Create LinkedModemodel for proposalsvoid
createLiteralProposals(org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for LiteralExpressionvoid
createProposals(org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Start method of creating proposalsprotected void
createProposalsForBeginQuery(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for start of queryprotected void
createProposalsForNestedQuery(org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for nested queryprotected void
createProposalsForSource(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for section 'FROM'protected org.eclipse.xtext.ui.editor.contentassist.ConfigurableCompletionProposal
doCreateProposal(String proposal, StyledString displayString, org.eclipse.swt.graphics.Image image, int priority, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context)
protected List<String>
getParametersNames(org.eclipse.emf.ecore.EObject model, boolean needTable, String additionalPrefix)
Gets names of theParameterExpression
protected void
initFiltering()
Initialize of filter for proposalsprotected boolean
isLegalPartForCommonExpression(org.eclipse.emf.ecore.EObject obj)
Checks thatobj
can containsCommonExpression
semantic elementprotected boolean
isMultiPartCommonExpressionWithoutContent(org.eclipse.emf.ecore.EObject object)
Checks that object corresponding to theMultiPartCommonExpression
with empty last segmentprotected boolean
isTableContainingObject(org.eclipse.emf.ecore.EObject obj)
Checks thatobj
can containsAbstractQuerySchemaTable
semantic elementprotected boolean
isValidProposal(String proposal, String prefix, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context)
protected void
proposalsFromScopeForFields(org.eclipse.xtext.scoping.IScope scope, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor, boolean addToFilter, boolean onlyTableAllowed)
Creates proposals for elements from scope-
Methods inherited from class com._1c.g5.v8.dt.ql.ui.contentassist.AbstractQlProposalProvider
complete_AbstractQuerySchemaFields, complete_AbstractQuerySchemaFieldsGroup, complete_AbstractQuerySchemaQuery, complete_AbstractQuerySchemaSource, complete_AbstractQuerySchemaTable, complete_AbstractQuerySchemaTableInto, complete_AbstractQuerySchemaTableWithoutServiceWords, complete_ACastingType, complete_AliasWithAsWord, complete_AliasWithAsWordAnyWord, complete_AliasWithoutAsWord, complete_ALL_ALLOWED_ALIAS_WITH_AS, complete_ALL_ALLOWED_ALIAS_WITH_AS_, complete_ALL_ALLOWED_ALIAS_WITHOUT_AS, complete_ALL_ALLOWED_ALIAS_WITHOUT_AS_, complete_ALL_ALLOWED_INTO_KEYWORDS, complete_ALL_ALLOWED_SINGLE_FIELD_NAME, complete_ALL_KEYWORDS, complete_ALL_KEYWORDS_WITHOUT_FROM, complete_ALL_KEYWORDS_WITHOUT_FROM_AND_INTO, complete_AnythingWordWithoutFrom, complete_AnyWord, complete_BetweenExpression, complete_BooleanLiteralExpression, complete_BracketCommonExpression, complete_CaseBody, complete_CaseOperationExpression, complete_CastOperationExpression, complete_CommonAddOperatorExpression, complete_CommonExpression, complete_CommonMultiOperatorExpression, complete_CommonUnaryNegOperatorExpression, complete_DateLiteralExpression, complete_EmptyExpression, complete_Expression, complete_FieldWithCasting, complete_FUNCTION_PART_NAME, complete_FunctionInvocationExpression, complete_FunctionWord, complete_ID, complete_IDENT_DIGIT, complete_InExpression, complete_IntoWord, complete_LETTER, complete_LikeExpression, complete_LikeStringLiteralExpression, complete_LinkExpression, complete_LiteralsExpression, complete_LogicalAND, complete_LogicalCompareType, complete_LogicalComparison, complete_LogicalExpression, complete_LogicalMultiplicant, complete_LogicalOrExpression, complete_MultiPartAliasWithoutAsWord, complete_MultiPartAliasWithoutAsWordAnyWord, complete_NullLiteralExpression, complete_NUMBER, complete_NumberLiteralExpression, complete_OtherSelector, complete_PrimaryExpression, complete_PrimaryLogicalExpression, complete_QuerySchema, complete_QuerySchemaAnythingExpression, complete_QuerySchemaDropTableQuery, complete_QuerySchemaExpression, complete_QuerySchemaGroupingSets, complete_QuerySchemaHavingExpression, complete_QuerySchemaJoinType, complete_QuerySchemaLogicalExpression, complete_QuerySchemaNestedQuery, complete_QuerySchemaNestedTableExpression, complete_QuerySchemaOrderExpression, complete_QuerySchemaPeriodAdditionType, complete_QuerySchemaQuerySourceJoin, complete_QuerySchemaSelectQuery, complete_QuerySchemaSelectQueryBody, complete_QuerySchemaSource, complete_QuerySchemaTable, complete_QuerySchemaTableParameter, complete_QuerySchemaTempTableDescription, complete_QuerySchemaTotalControlPoint, complete_SingleFieldWord, complete_SL_COMMENT, complete_SL_LIKESTRING, complete_SL_STRING, complete_StarExpression, complete_StringLiteralExpression, complete_TopSelector, complete_TypeLiteralExpression, complete_UndefinedLiteralExpression, complete_ValueLiteralExpression, complete_VerbalOperatorTypeBetween, complete_VerbalOperatorTypeIn, complete_VerbalOperatorTypeLike, complete_VerbalOperatorTypeRefs, complete_WS, completeAbstractQuerySchemaFields_Alias, completeAbstractQuerySchemaFieldsGroup_Alias, completeACastingType_Length, completeACastingType_Precision, completeACastingType_Table, completeBetweenExpression_FirstExpression, completeBetweenExpression_SecondExpression, completeBooleanLiteralExpression_True, completeCaseBody_Then, completeCaseBody_When, completeCaseOperationExpression_ElseExpression, completeCaseOperationExpression_Expression, completeCastOperationExpression_Expression, completeCommonAddOperatorExpression_Right, completeCommonExpression_FieldsName, completeCommonMultiOperatorExpression_Right, completeCommonUnaryNegOperatorExpression_Expression, completeCommonUnaryNegOperatorExpression_Negative, completeDateLiteralExpression_Day, completeDateLiteralExpression_Hour, completeDateLiteralExpression_Minute, completeDateLiteralExpression_Month, completeDateLiteralExpression_Second, completeDateLiteralExpression_Year, completeFieldWithCasting_AllFields, completeFieldWithCasting_CastOperation, completeFunctionInvocationExpression_Distinct, completeFunctionInvocationExpression_Params, completeInExpression_Expression, completeInExpression_Hierarchy, completeLikeExpression_Escape, completeLikeExpression_Literal, completeLikeStringLiteralExpression_Content, completeLinkExpression_Table, completeLogicalAND_Right, completeLogicalComparison_CompareType, completeLogicalComparison_IsNot, completeLogicalComparison_Not, completeLogicalComparison_Right, completeLogicalComparison_Type, completeLogicalMultiplicant_Expression, completeLogicalOrExpression_Right, completeNumberLiteralExpression_FractionPart, completeNumberLiteralExpression_IntPart, completeOtherSelector_Filters, completeOtherSelector_FlagUnionType, completeOtherSelector_FlagUnionTypeAll, completeOtherSelector_GetRecordsCount, completeOtherSelector_Grouping, completeOtherSelector_GroupingSets, completeOtherSelector_HavingExpression, completeOtherSelector_PlacementTable, completeOtherSelector_SelectDistinct, completeOtherSelector_SelectFields, completeOtherSelector_SelectForUpdate, completeOtherSelector_Sources, completeOtherSelector_TablesForUpdate, completePrimaryExpression_AllFields, completePrimaryExpression_CommonExpression, completePrimaryExpression_Tail, completePrimaryLogicalExpression_AllFields, completePrimaryLogicalExpression_CommonExpression, completePrimaryLogicalExpression_Tail, completeQuerySchemaDropTableQuery_Table, completeQuerySchemaExpression_Expression, completeQuerySchemaGroupingSets_Grouping, completeQuerySchemaHavingExpression_Expression, completeQuerySchemaLogicalExpression_Expression, completeQuerySchemaNestedQuery_Query, completeQuerySchemaNestedTableExpression_Expression, completeQuerySchemaOrderExpression_Desc, completeQuerySchemaOrderExpression_Hierarchy, completeQuerySchemaOrderExpression_Item, completeQuerySchemaQuerySourceJoin_Condition, completeQuerySchemaQuerySourceJoin_JoinType, completeQuerySchemaQuerySourceJoin_Source, completeQuerySchemaSelectQueryBody_AutoOrder, completeQuerySchemaSelectQueryBody_CommonTotals, completeQuerySchemaSelectQueryBody_Indexes, completeQuerySchemaSelectQueryBody_Operators, completeQuerySchemaSelectQueryBody_OrderExpressions, completeQuerySchemaSelectQueryBody_TotalControlPoints, completeQuerySchemaSelectQueryBody_TotalExpressions, completeQuerySchemaSource_Joins, completeQuerySchemaTable_Parameters, completeQuerySchemaTable_Table, completeQuerySchemaTableForUpdate_Table, completeQuerySchemaTempTableDescription_Table, completeQuerySchemaTotalControlPoint_ColumnName, completeQuerySchemaTotalControlPoint_Expression, completeQuerySchemaTotalControlPoint_Hierarchy, completeQuerySchemaTotalControlPoint_Only, completeQuerySchemaTotalControlPoint_PeriodAdditionType, completeStringLiteralExpression_Content, completeTopSelector_Filters, completeTopSelector_GetRecordsCount, completeTopSelector_Grouping, completeTopSelector_GroupingSets, completeTopSelector_HavingExpression, completeTopSelector_PlacementTable, completeTopSelector_SelectAllowed, completeTopSelector_SelectDistinct, completeTopSelector_SelectForUpdate, completeTopSelector_Sources, completeTopSelector_TablesForUpdate
-
Methods inherited from class org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider
announceProcessing, completeAssignment, completeRuleCall, getCrossReferenceProposalCreator, getHover, getProposalFactory, getScopeProvider, invokeMethod, lookupCrossReference, lookupCrossReference, lookupCrossReference, lookupCrossReference, lookupCrossReference, lookupCrossReference, setCrossReferenceProposalCreator, setScopeProvider
-
Methods inherited from class org.eclipse.xtext.ui.editor.contentassist.AbstractContentProposalProvider
createSelector, getDisplayString, getImage, getImage, getKeywordDisplayString, getLabelProvider, getQualifiedNameConverter, getStyledDisplayString, getStyledDisplayString, getValueConverter, setLabelProvider, setValueConverter
-
Methods inherited from class org.eclipse.xtext.ui.editor.contentassist.AbstractCompletionProposalFactory
createCompletionProposal, createCompletionProposal, createCompletionProposal, createCompletionProposal, doCreateProposal, getConflictHelper, getPriorityHelper, getReplacementContextLength, setConflictHelper, setPriorityHelper
-
-
-
-
Field Detail
-
isRussian
protected boolean isRussian
-
lastObject
protected org.eclipse.emf.ecore.EObject lastObject
-
allowedInFilter
protected boolean allowedInFilter
-
allowedAnotherRule
protected boolean allowedAnotherRule
-
parametersFinder
@Inject protected QlParametersFinder parametersFinder
-
-
Method Detail
-
createProposals
public void createProposals(org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Start method of creating proposals- Specified by:
createProposals
in interfaceorg.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider
- Overrides:
createProposals
in classorg.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider
-
completeQuerySchema_Queries
public void completeQuerySchema_Queries(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for start query- Overrides:
completeQuerySchema_Queries
in classAbstractQlProposalProvider
-
completeAbstractQuerySchemaSource_Alias
public void completeAbstractQuerySchemaSource_Alias(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for writing alias of section 'FROM'- Overrides:
completeAbstractQuerySchemaSource_Alias
in classAbstractQlProposalProvider
-
completeQuerySchemaSource_Source
public void completeQuerySchemaSource_Source(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for creating source section of query- Overrides:
completeQuerySchemaSource_Source
in classAbstractQlProposalProvider
-
completeCommonExpression_Content
public void completeCommonExpression_Content(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for common expression- Overrides:
completeCommonExpression_Content
in classAbstractQlProposalProvider
-
completeBracketCommonExpression_Content
public void completeBracketCommonExpression_Content(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for common expression- Overrides:
completeBracketCommonExpression_Content
in classAbstractQlProposalProvider
-
completeAbstractQuerySchemaTable_TableName
public void completeAbstractQuerySchemaTable_TableName(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for table name- Overrides:
completeAbstractQuerySchemaTable_TableName
in classAbstractQlProposalProvider
-
completeAbstractQuerySchemaTableWithoutServiceWords_TableName
public void completeAbstractQuerySchemaTableWithoutServiceWords_TableName(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for table name
-
completeFunctionInvocationExpression_FunctionType
public void completeFunctionInvocationExpression_FunctionType(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for functions- Overrides:
completeFunctionInvocationExpression_FunctionType
in classAbstractQlProposalProvider
-
complete_AbstractExpression
public void complete_AbstractExpression(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.RuleCall ruleCall, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for all type of expression- Overrides:
complete_AbstractExpression
in classAbstractQlProposalProvider
-
completeQuerySchemaAnythingExpression_Expression
public void completeQuerySchemaAnythingExpression_Expression(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for all type of expression- Overrides:
completeQuerySchemaAnythingExpression_Expression
in classAbstractQlProposalProvider
-
completeCastOperationExpression_TypeCast
public void completeCastOperationExpression_TypeCast(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for type of 'CAST' expression- Overrides:
completeCastOperationExpression_TypeCast
in classAbstractQlProposalProvider
-
completeCaseOperationExpression_Body
public void completeCaseOperationExpression_Body(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for body of 'CASE' expression- Overrides:
completeCaseOperationExpression_Body
in classAbstractQlProposalProvider
-
completeQuerySchemaTotalControlPoint_Periods
public void completeQuerySchemaTotalControlPoint_Periods(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for 'PERIODS' in 'TOTALS'- Overrides:
completeQuerySchemaTotalControlPoint_Periods
in classAbstractQlProposalProvider
-
createLiteralProposals
public void createLiteralProposals(org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for LiteralExpression- Parameters:
context
- - current context of documentacceptor
- - currentICompletionProposalAcceptor
-
completeInExpression_Query
public void completeInExpression_Query(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for 'IN' expression with nested query- Overrides:
completeInExpression_Query
in classAbstractQlProposalProvider
-
completeKeyword
public void completeKeyword(org.eclipse.xtext.Keyword keyword, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext contentAssistContext, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Filtering keyword proposals- Overrides:
completeKeyword
in classorg.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider
-
complete_IDENT_SPEC_MULTI
public void complete_IDENT_SPEC_MULTI(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.RuleCall ruleCall, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals forMultiPartCommonExpression
-
complete_IDENT_SPEC_MULTI_TABLE
public void complete_IDENT_SPEC_MULTI_TABLE(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.RuleCall ruleCall, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals forMultiPartQuerySchemaTable
-
completeQuerySchemaTableParameter_Expression
public void completeQuerySchemaTableParameter_Expression(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals forQuerySchemaTableParameter
- Overrides:
completeQuerySchemaTableParameter_Expression
in classAbstractQlProposalProvider
-
completeParameterExpression_Name
public void completeParameterExpression_Name(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals forParameterExpression
- Overrides:
completeParameterExpression_Name
in classAbstractQlProposalProvider
-
complete_ParameterExpression
public void complete_ParameterExpression(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.RuleCall ruleCall, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals forParameterExpression
- Overrides:
complete_ParameterExpression
in classAbstractQlProposalProvider
-
complete_QuerySchemaTableForUpdate
public void complete_QuerySchemaTableForUpdate(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.RuleCall ruleCall, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
- Overrides:
complete_QuerySchemaTableForUpdate
in classAbstractQlProposalProvider
-
completeTopSelector_SelectFields
public void completeTopSelector_SelectFields(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
- Overrides:
completeTopSelector_SelectFields
in classAbstractQlProposalProvider
-
completeValueLiteralExpression_Values
public void completeValueLiteralExpression_Values(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals forValueLiteralExpression
- Overrides:
completeValueLiteralExpression_Values
in classAbstractQlProposalProvider
-
completeTypeLiteralExpression_Table
public void completeTypeLiteralExpression_Table(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals forTypeLiteralExpression
- Overrides:
completeTypeLiteralExpression_Table
in classAbstractQlProposalProvider
-
completeQuerySchemaTotalControlPoint_PeriodAdditionBegin
public void completeQuerySchemaTotalControlPoint_PeriodAdditionBegin(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals for 'begin' parameters of periods inQuerySchemaTotalControlPoint
- Overrides:
completeQuerySchemaTotalControlPoint_PeriodAdditionBegin
in classAbstractQlProposalProvider
-
completeQuerySchemaTotalControlPoint_PeriodAdditionEnd
public void completeQuerySchemaTotalControlPoint_PeriodAdditionEnd(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Creates proposals for 'end' parameters of periods inQuerySchemaTotalControlPoint
- Overrides:
completeQuerySchemaTotalControlPoint_PeriodAdditionEnd
in classAbstractQlProposalProvider
-
completeFieldWithCasting_Table
public void completeFieldWithCasting_Table(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.Assignment assignment, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
proposals forFieldWithCasting
- Overrides:
completeFieldWithCasting_Table
in classAbstractQlProposalProvider
-
isValidProposal
protected boolean isValidProposal(String proposal, String prefix, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context)
- Overrides:
isValidProposal
in classorg.eclipse.xtext.ui.editor.contentassist.AbstractCompletionProposalFactory
-
doCreateProposal
protected org.eclipse.xtext.ui.editor.contentassist.ConfigurableCompletionProposal doCreateProposal(String proposal, StyledString displayString, org.eclipse.swt.graphics.Image image, int priority, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context)
- Overrides:
doCreateProposal
in classorg.eclipse.xtext.ui.editor.contentassist.AbstractCompletionProposalFactory
-
isMultiPartCommonExpressionWithoutContent
protected boolean isMultiPartCommonExpressionWithoutContent(org.eclipse.emf.ecore.EObject object)
Checks that object corresponding to theMultiPartCommonExpression
with empty last segment- Parameters:
object
- checking object, can't benull
- Returns:
true
if object corresponding to theMultiPartCommonExpression
with empty last segment,false
otherwise
-
createProposalsForBeginQuery
protected void createProposalsForBeginQuery(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for start of query- Parameters:
model
- - current model objectcontext
- - current context of documentacceptor
- - currentICompletionProposalAcceptor
-
createProposalsForSource
protected void createProposalsForSource(org.eclipse.emf.ecore.EObject model, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for section 'FROM'- Parameters:
model
- - current model objectcontext
- - current context of documentacceptor
- - currentICompletionProposalAcceptor
-
createLinkedModeModel
protected void createLinkedModeModel(org.eclipse.xtext.ui.editor.model.IXtextDocument doc, org.eclipse.jface.text.link.LinkedPosition[] linkedPos, int stopPos, org.eclipse.jface.text.ITextViewer viewer, String text)
Create LinkedModemodel for proposals- Parameters:
doc
- - document that defines theLinkedModeModel
linkedPos
- - position ofLinkedModeModel
stopPos
- - offset of position of cursor after thatLinkedModeModel
will be closedviewer
- - current viewertext
- - text which will be marked- See Also:
LinkedModeModel
-
createProposalsForNestedQuery
protected void createProposalsForNestedQuery(org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Create proposals for nested query- Parameters:
context
- - current context of documentacceptor
- - currentICompletionProposalAcceptor
-
initFiltering
protected void initFiltering()
Initialize of filter for proposals
-
allowedKeywordProposalLang
protected boolean allowedKeywordProposalLang(String keyword)
Check language of keyword- Parameters:
keyword
- checking keyword- Returns:
true
if language of keyword equals of configuration language,false
otherwise
-
getParametersNames
protected List<String> getParametersNames(org.eclipse.emf.ecore.EObject model, boolean needTable, String additionalPrefix)
Gets names of theParameterExpression
- Parameters:
model
- current Ql model element, can't benull
additionalPrefix
- additional prefix for add to parameters name, can benull
- Returns:
- list of found parameters names, never
null
-
proposalsFromScopeForFields
protected void proposalsFromScopeForFields(org.eclipse.xtext.scoping.IScope scope, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor, boolean addToFilter, boolean onlyTableAllowed)
Creates proposals for elements from scope- Parameters:
scope
- actual scope, can't benull
context
- actualContentAssistContext
, can't benull
acceptor
- actualICompletionProposalAcceptor
, can't benull
addToFilter
-true
if we need to add elements from scope to special filter,false
otherwiseonlyTableAllowed
-true
if we need only elements corresponding to tables,false
otherwise
-
isTableContainingObject
protected boolean isTableContainingObject(org.eclipse.emf.ecore.EObject obj)
Checks thatobj
can containsAbstractQuerySchemaTable
semantic element- Parameters:
obj
- checking object, can't benull
- Returns:
true
ifobj
can containsAbstractQuerySchemaTable
semantic element,false
otherwise
-
isLegalPartForCommonExpression
protected boolean isLegalPartForCommonExpression(org.eclipse.emf.ecore.EObject obj)
Checks thatobj
can containsCommonExpression
semantic element- Parameters:
obj
- checking object, can't benull
- Returns:
true
ifobj
can containsCommonExpression
semantic element,false
otherwise
-
-