Class BslProposalProvider
- 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.bsl.ui.contentassist.AbstractBslProposalProvider
-
- com._1c.g5.v8.dt.bsl.ui.contentassist.BslProposalProvider
-
- All Implemented Interfaces:
org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalFactory
,org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider
,org.eclipse.xtext.ui.editor.contentassist.RepeatedContentAssistProcessor.ModeAware
public class BslProposalProvider extends AbstractBslProposalProvider implements org.eclipse.xtext.ui.editor.contentassist.RepeatedContentAssistProcessor.ModeAware
Proposals for Bsl see http://www.eclipse.org/Xtext/documentation/latest/xtext.html#contentAssist on how to customize content assistant Instances ofBslProposalProvider
are stateful and are not safe for use by multiple threads.
-
-
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
isRussian
-
Constructor Summary
Constructors Constructor Description BslProposalProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
complete_AddHandlerStatement(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)
Proposals for AddHandlervoid
complete_AwaitStatement(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
complete_DeclareStatement(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)
Proposals for declare statement (Var ...)void
complete_DeclareStatementWithPragmas(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)
Proposals for declare statement (Var ...)void
complete_END_DELETE(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
complete_END_IFPREPROCESSOR(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
complete_END_INSERT(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
complete_END_REGION(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
complete_ExecuteStatement(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)
Proposals for Execute ...void
complete_Expression(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
complete_ExtName(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)
Proposals for DynamicFeatureAccessvoid
complete_FeatureResolving(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)
Proposals for allowed methods and variables ...void
complete_FormalParam(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)
Proposals for Val (Val ...void
complete_ForStatement(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)
Proposals for For statement ...void
complete_GotoStatement(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)
Proposals for GOTO statementvoid
complete_IfStatement(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)
Proposals for If statement ...void
complete_LabeledStatement(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)
Proposals for Lablel (~Lablel: )void
complete_Method(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)
Proposals for Procedure and Function ...void
complete_MML_STRING(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
complete_Pragma(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)
Proposals for Procedure and Function ...void
complete_RaiseStatement(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)
Proposals for Raise statementvoid
complete_RemoveHandlerStatement(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)
Proposals for RemoveHandlervoid
complete_ReturnStatement(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)
Proposals for Return statementvoid
complete_SL_COMMENT(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
complete_SL_STRING(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)
Proposals for string literalsvoid
complete_TryExceptStatement(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)
Proposals for try ...void
complete_WhileStatement(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)
Proposals for While statement ...void
completeAddHandlerStatement_HandlerExpression(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)
Checks here thats Expression is allowed in this context (AddHandler - handler expression)void
completeConditional_Predicate(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
completeCreator_Params(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
completeCreator_Type(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 for Constructorsvoid
completeFeatureResolving_Params(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
completeForEachStatementRest_Collection(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
completeForToStatementRest_Bound(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
completeKeyword(org.eclipse.xtext.Keyword keyword, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Filtering keyword proposalsvoid
completeLogFact_Operand(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
completeLogFact_Operation(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
completeLogPrimary_Right(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
completeLogTerm_Right(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
completePragma_Symbol(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 for type of Pragmavoid
completePragma_Value(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
completeRemoveHandlerStatement_HandlerExpression(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)
Checks here thats Expression is allowed in this context (RemoveHandler - handler expression)void
completeSimpleExpression_Right(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
completeSimpleStatement_Right(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
completeWhileStatement_Predicate(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
createProposals(org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Start method of creating proposalsList<org.eclipse.xtext.util.Pair<Event,Method>>
getAllCorrectEvent(Module module)
Gets all correctEvent
for creating proposalsprotected Collection<String>
getAppropriateContextTypeNames()
Gets types names from collection ofgetAppropriateContextTypes()
protected List<TypeItem>
getAppropriateContextTypes()
Gets the appropriate types for re ordering proposals by them.static String
getByValueLiteralName(BslGrammarAccess bslGrammar, boolean isRussian)
Gets 'Val' or 'Знач'String
getEndContentEventProposal(Module module, boolean isFunc, String lineFormatter, boolean isRussian)
Gets last part of content event's proposalstatic String
getEventAnnotation(Module actualBslModule, Event event, boolean isRussian)
Gets string presentation of Bsl annotation link to the adoptable event handlerstatic String
getEventDirective(Module actualBslModule, Event event, boolean isRussian)
Gets compilation directive forEvent
static String
getExportLiteralName(BslGrammarAccess bslGrammar, boolean isRussian)
Gets 'Export' or 'Экспорт'String
getLineFormatter(Module module, int offset, org.eclipse.jface.text.IDocument document)
Gets indentation by current context for Bsl modulestatic String
getMethodAnnotation(Module actualBslModule, Method method, boolean isRussian)
Gets string presentation of Bsl annotation link to the adoptable method from BslModule
String
getNextCategory()
BslContentProposalPriorities
getPriorityHelper()
static String
getTypeEndMethodName(BslGrammarAccess bslGrammar, boolean isFunc, boolean isRussian)
Gets 'EndProcedure' or 'EndFunction'String
getTypeMethodName(boolean isFunc, boolean isRussian)
Gets 'Procedure' or 'Function'static String
getTypeMethodName(BslGrammarAccess bslGrammar, boolean isFunc, boolean isRussian)
Gets 'Procedure' or 'Function'protected boolean
isAppropriateIterableTypes()
Checks that current context types of content assist contain iterableType
static boolean
isCommentNode(org.eclipse.xtext.nodemodel.INode node, String ruleName)
Checks that node is comment nodeboolean
isLastMode()
static boolean
isOnGetDataAtServerEvent(Event event)
Checks thatEvent
has name "OnGetDataAtServer" and corresponding to the type "FormTableExtensionForDynamicList"protected boolean
isValidProposal(String proposal, String prefix, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context)
protected void
lookupCrossReference(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EReference reference, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter, com.google.common.base.Function<org.eclipse.xtext.resource.IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> proposalFactory)
void
nextMode()
void
reset()
-
Methods inherited from class com._1c.g5.v8.dt.bsl.ui.contentassist.AbstractBslProposalProvider
complete_AddOp, complete_ANY_OTHER, complete_AsyncName, complete_AwaitExpression, complete_BEGIN_DELETE, complete_BEGIN_DELETE_PREPROCESSOR_KEYWORDS, complete_BEGIN_IFPREPROCESSOR, complete_BEGIN_INSERT, complete_BEGIN_INSERT_PREPROCESSOR_KEYWORDS, complete_BEGIN_REGION, complete_BEGIN_REGION_PREPROCESSOR_KEYWORDS, complete_BML_STRING, complete_BooleanLiteral, complete_BracketPreprocessorExpression, complete_BreakStatement, complete_BUILTIN, complete_CompOp, complete_Conditional, complete_ContinueStatement, complete_Creator, complete_DATE, complete_DateLiteral, complete_DeletePreprocessorBslExpression, complete_ELSE_PREPROCESSOR, complete_ELSEIF_PREPROCESSOR, complete_EML_STRING, complete_EmptyExpression, complete_EmptyStatement, complete_END_DELETE_PREPROCESSOR_KEYWORDS, complete_END_INSERT_PREPROCESSOR_KEYWORDS, complete_END_REGION_PREPROCESSOR_KEYWORDS, complete_EOT, complete_ExplicitVariable, complete_ExpressionOrEmpty, complete_Fact, complete_ForEachStatementRest, complete_ForToStatementRest, complete_Function, complete_Id, complete_IDENT, complete_IDENT_DIGIT, complete_InsertPreprocessorBslExpression, complete_Label, complete_LABEL_TOK, complete_LETTER, complete_Literal, complete_LiteralPreprocessor, complete_LogAddOp, complete_LogFact, complete_LogFactPreprocessor, complete_LogMulOp, complete_LogPrimary, complete_LogSign, complete_LogTerm, complete_LogTermPreprocessor, complete_Module, complete_MulOp, complete_Name, complete_NullLiteral, complete_NUMBER, complete_NumberLiteral, complete_PREPROCESSOR, complete_PreprocessorBslExpression, complete_PreprocessorConditionalMethod, complete_PreprocessorConditionalMethodStatement, complete_PreprocessorConditionalModule, complete_PreprocessorConditionalStatement, complete_PreprocessorElseIfConditionalMethod, complete_PreprocessorElseIfConditionalMethodStatement, complete_PreprocessorElseIfConditionalModule, complete_PreprocessorElseIfConditionalStatement, complete_PreprocessorExpression, complete_PreprocessorIfConditionalMethod, complete_PreprocessorIfConditionalMethodStatement, complete_PreprocessorIfConditionalModule, complete_PreprocessorIfConditionalStatement, complete_PreprocessorItemExpression, complete_PreprocessorItemMethod, complete_PreprocessorItemMethodAfter, complete_PreprocessorItemMethodStatement, complete_PreprocessorItemMethodStatementAfter, complete_PreprocessorItemModule, complete_PreprocessorItemModuleAfter, complete_PreprocessorItemStatement, complete_PreprocessorItemStatementAfter, complete_PreprocessorItemStatementInnerAfter, complete_PreprocessorLiteralExpressionType, complete_PreprocessorLiteralName, complete_PreprocessorMethod, complete_PreprocessorMethodDelete, complete_PreprocessorMethodIf, complete_PreprocessorMethodInsert, complete_PreprocessorMethodRegion, complete_PreprocessorMethodStatement, complete_PreprocessorMethodStatementDelete, complete_PreprocessorMethodStatementIf, complete_PreprocessorMethodStatementInsert, complete_PreprocessorMethodStatementRegion, complete_PreprocessorModule, complete_PreprocessorModuleDelete, complete_PreprocessorModuleIf, complete_PreprocessorModuleInsert, complete_PreprocessorModuleRegion, complete_PreprocessorStatement, complete_PreprocessorStatementDelete, complete_PreprocessorStatementIf, complete_PreprocessorStatementInner, complete_PreprocessorStatementInnerDelete, complete_PreprocessorStatementInnerIf, complete_PreprocessorStatementInnerInsert, complete_PreprocessorStatementInnerRegion, complete_PreprocessorStatementInsert, complete_PreprocessorStatementRegion, complete_Primary, complete_Procedure, complete_Question, complete_RegionPreprocessorBslExpression, complete_SEMICOLON, complete_Sign, complete_SimpleExpression, complete_SimplePreprocessorExpression, complete_SimpleStatement, complete_Statement, complete_StatementWithoutEmpty, complete_StringLiteral, complete_Term, complete_TypeName, complete_UndefinedLiteral, complete_UnlabeledStatement, complete_UnlabeledStatementWithoutEmpty, complete_UTF8_BOM, complete_VariableAccess, complete_WS, completeAddHandlerStatement_EventExpression, completeAwaitExpression_Expression, completeAwaitStatement_Expression, completeBooleanLiteral_IsTrue, completeBracketPreprocessorExpression_Operand, completeConditional_Statements, completeCreator_ParamsExpression, completeCreator_TypeNameExpression, completeDateLiteral_Value, completeDeclareStatement_Variables, completeDeclareStatementWithPragmas_Pragmas, completeDeclareStatementWithPragmas_Variables, completeDeletePreprocessorBslExpression_Item, completeExecuteStatement_Expression, completeExplicitVariable_Export, completeExplicitVariable_Name, completeExpression_Operation, completeExpression_Right, completeFact_Operand, completeFact_Operation, completeFeatureResolving_Index, completeFeatureResolving_Name, completeForEachStatementRest_Statements, completeForEachStatementRest_VariableAccess, completeFormalParam_ByValue, completeFormalParam_DefaultValue, completeFormalParam_Name, completeForToStatementRest_Initializer, completeForToStatementRest_Statements, completeForToStatementRest_VariableAccess, completeFunction_Async, completeFunction_DeclareStatements, completeFunction_Export, completeFunction_FormalParams, completeFunction_Name, completeFunction_Pragmas, completeFunction_Statements, completeGotoStatement_Label, completeIfStatement_ElseStatements, completeIfStatement_ElsIfParts, completeIfStatement_IfPart, completeInsertPreprocessorBslExpression_Item, completeLabel_Name, completeLabeledStatement_Labels, completeLabeledStatement_Statement, completeLiteralPreprocessor_TypeLiteral, completeLogFactPreprocessor_Operand, completeLogFactPreprocessor_Operation, completeLogPrimary_Operation, completeLogTerm_Operation, completeLogTermPreprocessor_Operation, completeLogTermPreprocessor_Right, completeModule_DeclareStatements, completeModule_Methods, completeModule_Preprocessors, completeModule_Statements, completeNumberLiteral_Value, completePreprocessorConditionalMethod_Item, completePreprocessorConditionalMethodStatement_Item, completePreprocessorConditionalModule_Item, completePreprocessorConditionalStatement_Item, completePreprocessorElseIfConditionalMethod_Item, completePreprocessorElseIfConditionalMethod_Predicate, completePreprocessorElseIfConditionalMethodStatement_Item, completePreprocessorElseIfConditionalMethodStatement_Predicate, completePreprocessorElseIfConditionalModule_Item, completePreprocessorElseIfConditionalModule_Predicate, completePreprocessorElseIfConditionalStatement_Item, completePreprocessorElseIfConditionalStatement_Predicate, completePreprocessorExpression_Operation, completePreprocessorExpression_Right, completePreprocessorIfConditionalMethod_Item, completePreprocessorIfConditionalMethod_Predicate, completePreprocessorIfConditionalMethodStatement_Item, completePreprocessorIfConditionalMethodStatement_Predicate, completePreprocessorIfConditionalModule_Item, completePreprocessorIfConditionalModule_Predicate, completePreprocessorIfConditionalStatement_Item, completePreprocessorIfConditionalStatement_Predicate, completePreprocessorItemExpression_Expression, completePreprocessorItemMethod_DeclareStatements, completePreprocessorItemMethod_Statements, completePreprocessorItemMethodAfter_DeclareStatements, completePreprocessorItemMethodAfter_Statements, completePreprocessorItemMethodStatement_Methods, completePreprocessorItemMethodStatement_Preprocessors, completePreprocessorItemMethodStatement_Statements, completePreprocessorItemMethodStatementAfter_Methods, completePreprocessorItemMethodStatementAfter_Preprocessors, completePreprocessorItemMethodStatementAfter_Statements, completePreprocessorItemModule_DeclareStatements, completePreprocessorItemModule_Methods, completePreprocessorItemModule_Preprocessors, completePreprocessorItemModule_Statements, completePreprocessorItemModuleAfter_DeclareStatements, completePreprocessorItemModuleAfter_Methods, completePreprocessorItemModuleAfter_Preprocessors, completePreprocessorItemModuleAfter_Statements, completePreprocessorItemStatement_Statements, completePreprocessorItemStatementAfter_Statements, completePreprocessorItemStatementInnerAfter_Statements, completePreprocessorMethodDelete_Item, completePreprocessorMethodDelete_ItemAfter, completePreprocessorMethodIf_ElseElement, completePreprocessorMethodIf_ElsIfParts, completePreprocessorMethodIf_IfPart, completePreprocessorMethodIf_ItemAfter, completePreprocessorMethodInsert_Item, completePreprocessorMethodInsert_ItemAfter, completePreprocessorMethodRegion_Item, completePreprocessorMethodRegion_ItemAfter, completePreprocessorMethodRegion_Name, completePreprocessorMethodStatementDelete_Item, completePreprocessorMethodStatementDelete_ItemAfter, completePreprocessorMethodStatementIf_ElseElement, completePreprocessorMethodStatementIf_ElsIfParts, completePreprocessorMethodStatementIf_IfPart, completePreprocessorMethodStatementIf_ItemAfter, completePreprocessorMethodStatementInsert_Item, completePreprocessorMethodStatementInsert_ItemAfter, completePreprocessorMethodStatementRegion_Item, completePreprocessorMethodStatementRegion_ItemAfter, completePreprocessorMethodStatementRegion_Name, completePreprocessorModuleDelete_Item, completePreprocessorModuleDelete_ItemAfter, completePreprocessorModuleIf_ElseElement, completePreprocessorModuleIf_ElsIfParts, completePreprocessorModuleIf_IfPart, completePreprocessorModuleIf_ItemAfter, completePreprocessorModuleInsert_Item, completePreprocessorModuleInsert_ItemAfter, completePreprocessorModuleRegion_Item, completePreprocessorModuleRegion_ItemAfter, completePreprocessorModuleRegion_Name, completePreprocessorStatementDelete_Item, completePreprocessorStatementDelete_ItemAfter, completePreprocessorStatementIf_ElseElement, completePreprocessorStatementIf_ElsIfParts, completePreprocessorStatementIf_IfPart, completePreprocessorStatementIf_ItemAfter, completePreprocessorStatementInnerDelete_Item, completePreprocessorStatementInnerDelete_ItemAfter, completePreprocessorStatementInnerIf_ElseElement, completePreprocessorStatementInnerIf_ElsIfParts, completePreprocessorStatementInnerIf_IfPart, completePreprocessorStatementInnerIf_ItemAfter, completePreprocessorStatementInnerInsert_Item, completePreprocessorStatementInnerInsert_ItemAfter, completePreprocessorStatementInnerRegion_Item, completePreprocessorStatementInnerRegion_ItemAfter, completePreprocessorStatementInnerRegion_Name, completePreprocessorStatementInsert_Item, completePreprocessorStatementInsert_ItemAfter, completePreprocessorStatementRegion_Item, completePreprocessorStatementRegion_ItemAfter, completePreprocessorStatementRegion_Name, completeProcedure_Async, completeProcedure_DeclareStatements, completeProcedure_Export, completeProcedure_FormalParams, completeProcedure_Name, completeProcedure_Pragmas, completeProcedure_Statements, completeRaiseStatement_Expressions, completeRegionPreprocessorBslExpression_Item, completeRegionPreprocessorBslExpression_Name, completeRemoveHandlerStatement_EventExpression, completeReturnStatement_Expression, completeSimpleExpression_Operation, completeSimpleStatement_Left, completeStringLiteral_Lines, completeTerm_Operation, completeTerm_Right, completeTryExceptStatement_ExceptStatements, completeTryExceptStatement_TryStatements, completeVariableAccess_Name, completeWhileStatement_Statements
-
Methods inherited from class org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider
announceProcessing, completeAssignment, completeRuleCall, getCrossReferenceProposalCreator, getHover, getProposalFactory, getScopeProvider, invokeMethod, 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, doCreateProposal, getConflictHelper, getReplacementContextLength, setConflictHelper, setPriorityHelper
-
-
-
-
Method Detail
-
getTypeMethodName
public static String getTypeMethodName(BslGrammarAccess bslGrammar, boolean isFunc, boolean isRussian)
Gets 'Procedure' or 'Function'- Parameters:
bslGrammar
-BslGrammarAccess
isFunc
- defines what will be returnisRussian
-true
if current script language is Russian,false
otherwise- Returns:
- 'Procedure' if
isFunc == false
, else return 'Function'
-
getByValueLiteralName
public static String getByValueLiteralName(BslGrammarAccess bslGrammar, boolean isRussian)
Gets 'Val' or 'Знач'- Parameters:
bslGrammar
-BslGrammarAccess
isRussian
-true
if current script language is Russian,false
otherwise- Returns:
- 'Val' if
isRussian == false
, else return 'Знач'
-
getExportLiteralName
public static String getExportLiteralName(BslGrammarAccess bslGrammar, boolean isRussian)
Gets 'Export' or 'Экспорт'- Parameters:
bslGrammar
-BslGrammarAccess
isRussian
-true
if current script language is Russian,false
otherwise- Returns:
- 'Export' if
isRussian == false
, else return 'Экспорт'
-
getTypeEndMethodName
public static String getTypeEndMethodName(BslGrammarAccess bslGrammar, boolean isFunc, boolean isRussian)
Gets 'EndProcedure' or 'EndFunction'- Parameters:
bslGrammar
-BslGrammarAccess
isFunc
- defines what will be returnisRussian
-true
if current script language is Russian,false
otherwise- Returns:
- 'EndProcedure' if
isFunc == false
, else return 'EndFunction'
-
getEventDirective
public static String getEventDirective(Module actualBslModule, Event event, boolean isRussian)
Gets compilation directive forEvent
- Parameters:
actualBslModule
- current Bsl module, can't benull
event
- processingEvent
, can't benull
isRussian
-true
if current script language is Russian,false
otherwise- Returns:
- actual text presentation of compilation directive or emty string if no directives, never
null
-
isOnGetDataAtServerEvent
public static boolean isOnGetDataAtServerEvent(Event event)
Checks thatEvent
has name "OnGetDataAtServer" and corresponding to the type "FormTableExtensionForDynamicList"- Returns:
true
ifEvent
has name "OnGetDataAtServer" and corresponding to the type "FormTableExtensionForDynamicList",false
otherwise
-
getEventAnnotation
public static String getEventAnnotation(Module actualBslModule, Event event, boolean isRussian)
Gets string presentation of Bsl annotation link to the adoptable event handler
-
getMethodAnnotation
public static String getMethodAnnotation(Module actualBslModule, Method method, boolean isRussian)
Gets string presentation of Bsl annotation link to the adoptable method from BslModule
-
reset
public void reset()
- Specified by:
reset
in interfaceorg.eclipse.xtext.ui.editor.contentassist.RepeatedContentAssistProcessor.ModeAware
-
nextMode
public void nextMode()
- Specified by:
nextMode
in interfaceorg.eclipse.xtext.ui.editor.contentassist.RepeatedContentAssistProcessor.ModeAware
-
getNextCategory
public String getNextCategory()
- Specified by:
getNextCategory
in interfaceorg.eclipse.xtext.ui.editor.contentassist.RepeatedContentAssistProcessor.ModeAware
-
isLastMode
public boolean isLastMode()
- Specified by:
isLastMode
in interfaceorg.eclipse.xtext.ui.editor.contentassist.RepeatedContentAssistProcessor.ModeAware
-
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
-
isCommentNode
public static boolean isCommentNode(org.eclipse.xtext.nodemodel.INode node, String ruleName)
Checks that node is comment node- Parameters:
node
- checking node, cannot benull
ruleName
- name of the comment rule name in grammar, cannot benull
- Returns:
true
if it is comment node,false
otherwise
-
getPriorityHelper
public BslContentProposalPriorities getPriorityHelper()
- Overrides:
getPriorityHelper
in classorg.eclipse.xtext.ui.editor.contentassist.AbstractCompletionProposalFactory
-
completeKeyword
public void completeKeyword(org.eclipse.xtext.Keyword keyword, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor)
Filtering keyword proposals- Overrides:
completeKeyword
in classorg.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider
-
complete_GotoStatement
public void complete_GotoStatement(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)
Proposals for GOTO statement- Overrides:
complete_GotoStatement
in classAbstractBslProposalProvider
-
complete_ReturnStatement
public void complete_ReturnStatement(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)
Proposals for Return statement- Overrides:
complete_ReturnStatement
in classAbstractBslProposalProvider
-
complete_RaiseStatement
public void complete_RaiseStatement(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)
Proposals for Raise statement- Overrides:
complete_RaiseStatement
in classAbstractBslProposalProvider
-
complete_DeclareStatement
public void complete_DeclareStatement(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)
Proposals for declare statement (Var ...)- Overrides:
complete_DeclareStatement
in classAbstractBslProposalProvider
-
complete_DeclareStatementWithPragmas
public void complete_DeclareStatementWithPragmas(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)
Proposals for declare statement (Var ...)- Overrides:
complete_DeclareStatementWithPragmas
in classAbstractBslProposalProvider
-
complete_LabeledStatement
public void complete_LabeledStatement(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)
Proposals for Lablel (~Lablel: )- Overrides:
complete_LabeledStatement
in classAbstractBslProposalProvider
-
complete_FormalParam
public void complete_FormalParam(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)
Proposals for Val (Val ... )- Overrides:
complete_FormalParam
in classAbstractBslProposalProvider
-
complete_AddHandlerStatement
public void complete_AddHandlerStatement(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)
Proposals for AddHandler- Overrides:
complete_AddHandlerStatement
in classAbstractBslProposalProvider
-
complete_RemoveHandlerStatement
public void complete_RemoveHandlerStatement(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)
Proposals for RemoveHandler- Overrides:
complete_RemoveHandlerStatement
in classAbstractBslProposalProvider
-
complete_TryExceptStatement
public void complete_TryExceptStatement(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)
Proposals for try ...- Overrides:
complete_TryExceptStatement
in classAbstractBslProposalProvider
-
complete_ExecuteStatement
public void complete_ExecuteStatement(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)
Proposals for Execute ...- Overrides:
complete_ExecuteStatement
in classAbstractBslProposalProvider
-
complete_IfStatement
public void complete_IfStatement(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)
Proposals for If statement ...- Overrides:
complete_IfStatement
in classAbstractBslProposalProvider
-
complete_WhileStatement
public void complete_WhileStatement(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)
Proposals for While statement ...- Overrides:
complete_WhileStatement
in classAbstractBslProposalProvider
-
complete_ForStatement
public void complete_ForStatement(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)
Proposals for For statement ...- Overrides:
complete_ForStatement
in classAbstractBslProposalProvider
-
complete_Method
public void complete_Method(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)
Proposals for Procedure and Function ...- Overrides:
complete_Method
in classAbstractBslProposalProvider
-
complete_Pragma
public void complete_Pragma(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)
Proposals for Procedure and Function ...- Overrides:
complete_Pragma
in classAbstractBslProposalProvider
-
complete_FeatureResolving
public void complete_FeatureResolving(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)
Proposals for allowed methods and variables ...- Overrides:
complete_FeatureResolving
in classAbstractBslProposalProvider
-
completePragma_Symbol
public void completePragma_Symbol(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 for type of Pragma- Overrides:
completePragma_Symbol
in classAbstractBslProposalProvider
-
complete_ExtName
public void complete_ExtName(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)
Proposals for DynamicFeatureAccess- Overrides:
complete_ExtName
in classAbstractBslProposalProvider
-
completeCreator_Type
public void completeCreator_Type(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 for Constructors- Overrides:
completeCreator_Type
in classAbstractBslProposalProvider
-
complete_SL_STRING
public void complete_SL_STRING(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)
Proposals for string literals- Overrides:
complete_SL_STRING
in classAbstractBslProposalProvider
-
complete_MML_STRING
public void complete_MML_STRING(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_MML_STRING
in classAbstractBslProposalProvider
-
completeAddHandlerStatement_HandlerExpression
public void completeAddHandlerStatement_HandlerExpression(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)
Checks here thats Expression is allowed in this context (AddHandler - handler expression)- Overrides:
completeAddHandlerStatement_HandlerExpression
in classAbstractBslProposalProvider
-
completeRemoveHandlerStatement_HandlerExpression
public void completeRemoveHandlerStatement_HandlerExpression(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)
Checks here thats Expression is allowed in this context (RemoveHandler - handler expression)- Overrides:
completeRemoveHandlerStatement_HandlerExpression
in classAbstractBslProposalProvider
-
getAllCorrectEvent
public List<org.eclipse.xtext.util.Pair<Event,Method>> getAllCorrectEvent(Module module)
Gets all correctEvent
for creating proposals
-
getTypeMethodName
public String getTypeMethodName(boolean isFunc, boolean isRussian)
Gets 'Procedure' or 'Function'- Parameters:
isFunc
- defines what will be returnisRussian
- current language- Returns:
- 'Procedure' if
isFunc == false
, else return 'Function'
-
getLineFormatter
public String getLineFormatter(Module module, int offset, org.eclipse.jface.text.IDocument document)
Gets indentation by current context for Bsl module- Parameters:
module
- module, can't benull
offset
- current offset in the moduledocument
-IDocument
of the module- Returns:
- computed indentation
-
getEndContentEventProposal
public String getEndContentEventProposal(Module module, boolean isFunc, String lineFormatter, boolean isRussian)
Gets last part of content event's proposal- Parameters:
module
- module, can't benull
isFunc
-true
if event is funciton,false
otherwiselineFormatter
- actual line formatter string, can't benull
isRussian
-true
if current script language is Russian,false
otherwise- Returns:
- last part of content event's proposal, never
null
-
completeSimpleStatement_Right
public void completeSimpleStatement_Right(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:
completeSimpleStatement_Right
in classAbstractBslProposalProvider
-
completeSimpleExpression_Right
public void completeSimpleExpression_Right(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:
completeSimpleExpression_Right
in classAbstractBslProposalProvider
-
completeLogPrimary_Right
public void completeLogPrimary_Right(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:
completeLogPrimary_Right
in classAbstractBslProposalProvider
-
completeLogFact_Operation
public void completeLogFact_Operation(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:
completeLogFact_Operation
in classAbstractBslProposalProvider
-
complete_Expression
public void complete_Expression(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_Expression
in classAbstractBslProposalProvider
-
completeLogFact_Operand
public void completeLogFact_Operand(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:
completeLogFact_Operand
in classAbstractBslProposalProvider
-
completeLogTerm_Right
public void completeLogTerm_Right(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:
completeLogTerm_Right
in classAbstractBslProposalProvider
-
completeFeatureResolving_Params
public void completeFeatureResolving_Params(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:
completeFeatureResolving_Params
in classAbstractBslProposalProvider
-
completeCreator_Params
public void completeCreator_Params(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:
completeCreator_Params
in classAbstractBslProposalProvider
-
completeConditional_Predicate
public void completeConditional_Predicate(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:
completeConditional_Predicate
in classAbstractBslProposalProvider
-
completeWhileStatement_Predicate
public void completeWhileStatement_Predicate(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:
completeWhileStatement_Predicate
in classAbstractBslProposalProvider
-
completeForEachStatementRest_Collection
public void completeForEachStatementRest_Collection(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:
completeForEachStatementRest_Collection
in classAbstractBslProposalProvider
-
completeForToStatementRest_Bound
public void completeForToStatementRest_Bound(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:
completeForToStatementRest_Bound
in classAbstractBslProposalProvider
-
completePragma_Value
public void completePragma_Value(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:
completePragma_Value
in classAbstractBslProposalProvider
-
complete_SL_COMMENT
public void complete_SL_COMMENT(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_SL_COMMENT
in classAbstractBslProposalProvider
-
complete_END_IFPREPROCESSOR
public void complete_END_IFPREPROCESSOR(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_END_IFPREPROCESSOR
in classAbstractBslProposalProvider
-
complete_END_REGION
public void complete_END_REGION(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_END_REGION
in classAbstractBslProposalProvider
-
complete_END_DELETE
public void complete_END_DELETE(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_END_DELETE
in classAbstractBslProposalProvider
-
complete_END_INSERT
public void complete_END_INSERT(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_END_INSERT
in classAbstractBslProposalProvider
-
complete_AwaitStatement
public void complete_AwaitStatement(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_AwaitStatement
in classAbstractBslProposalProvider
-
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
-
lookupCrossReference
protected void lookupCrossReference(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EReference reference, org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor acceptor, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription> filter, com.google.common.base.Function<org.eclipse.xtext.resource.IEObjectDescription,org.eclipse.jface.text.contentassist.ICompletionProposal> proposalFactory)
- Overrides:
lookupCrossReference
in classorg.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider
-
getAppropriateContextTypes
protected List<TypeItem> getAppropriateContextTypes()
Gets the appropriate types for re ordering proposals by them. Appropriate type names are defined in methods:completeSimpleStatement_Right(EObject, Assignment, ContentAssistContext, ICompletionProposalAcceptor)
completeSimpleExpression_Right(EObject, Assignment, ContentAssistContext, ICompletionProposalAcceptor)
completeLogPrimary_Right(EObject, Assignment, ContentAssistContext, ICompletionProposalAcceptor)
completeLogFact_Operation(EObject, Assignment, ContentAssistContext, ICompletionProposalAcceptor)
completeLogFact_Operand(EObject, Assignment, ContentAssistContext, ICompletionProposalAcceptor)
completeFeatureResolving_Params(EObject, Assignment, ContentAssistContext, ICompletionProposalAcceptor)
- Returns:
- the appropriate types for re ordering proposals by them, never
null
-
getAppropriateContextTypeNames
protected Collection<String> getAppropriateContextTypeNames()
Gets types names from collection ofgetAppropriateContextTypes()
- Returns:
- types names from collection of
getAppropriateContextTypes()
, nevernull
-
-