Interface IVariableFactory
-
- All Known Implementing Classes:
CreateMethodAndInvocationVariableFactory
,CreateMethodVariableFactory
,CursorVariableFactory
,DateVariableFactory
,EditVariableFactory
,EnumerationValueVariableFactory
,FormatStringVariableFactory
,InsertMetadataObjectFullNameVariableFactory
,InsertMetadataObjectNameVariableFactory
,MetadataObjectPredefinedItemVariableFactory
,ProposalsVariableFactory
,QueryTextVariableFactory
,SelectionVariableFactory
,TypeDescriptionBuilderVariableFactory
,TypeSelectionVariableFactory
,UserVariableFactory
public interface IVariableFactory
Factory to create variable. One factory creates exactly one variable and provides its presentation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IVariable
create(IVariableOccurrence occurrence, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context)
Creates variables for given occurrenceIVariablePresentation
getPresentation()
Return presentation of the variable, that is created by this factory
-
-
-
Method Detail
-
create
IVariable create(IVariableOccurrence occurrence, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context)
Creates variables for given occurrence- Parameters:
occurences
- The occurrences of the variable in the pattern, cannot benull
context
- The context of this template, cannot benull
- Returns:
- The created variables, cannot be
null
-
getPresentation
IVariablePresentation getPresentation()
Return presentation of the variable, that is created by this factory- Returns:
- The presentation of created variable, cannot be
null
-
-