Class BslTemplateContext
java.lang.Object
com.e1c.g5.v8.dt.bsl.ui.templates.impl.BslTemplateContext
- All Implemented Interfaces:
- ITemplateContext,- Cloneable
This class contains information about where the template can be applied
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumThe enum of module contexts.static enumThe enum of module environments.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates new contexts with the default environments and contextsCopies the other context
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds module context to the list of applicable contexts for this contextvoidaddModuleEnvironment(BslTemplateContext.ModuleEnvironments moduleEnvironment) Adds module environment to the list of applicable environments for this contextbooleancheck(org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context) Checks whether this template is applicable in the given contextReturns all applicable module contextsReturns the environments applicable for this contextvoidRemoves module context from the list of applicable contextvoidremoveModuleEnvironment(BslTemplateContext.ModuleEnvironments moduleEnvironment) Removes module environment from the list of applicable environments for this context
- 
Constructor Details- 
BslTemplateContextpublic BslTemplateContext()Creates new contexts with the default environments and contexts
- 
BslTemplateContextCopies the other context- Parameters:
- other- The context to copy, cannot be- null
 
 
- 
- 
Method Details- 
getModuleEnvironmentsReturns the environments applicable for this context- Returns:
- The context's environments, cannot be null
 
- 
addModuleEnvironmentAdds module environment to the list of applicable environments for this context- Parameters:
- moduleEnvironment- The environment to add, cannot be- null
 
- 
removeModuleEnvironmentRemoves module environment from the list of applicable environments for this context- Parameters:
- moduleEnvironment- The environment to remove, cannot be- null
 
- 
getModuleContextsReturns all applicable module contexts- Returns:
- All applicable module contexts, cannot be null
 
- 
addModuleContextAdds module context to the list of applicable contexts for this context- Parameters:
- context- The context to add, cannot be- null
 
- 
removeModuleContextRemoves module context from the list of applicable context- Parameters:
- context- The context to remove, cannot be- null
 
- 
checkpublic boolean check(org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context) Description copied from interface:ITemplateContextChecks whether this template is applicable in the given context- Specified by:
- checkin interface- ITemplateContext
- Parameters:
- context- The context where the check is occurred, cannot be- null
- Returns:
- Whether this is applicable in the given context
 
 
-