Class InsertMetadataObjectNameVariableFactory
- java.lang.Object
-
- com.e1c.g5.v8.dt.bsl.ui.templates.variables.InsertMetadataObjectNameVariableFactory
-
- All Implemented Interfaces:
IVariableFactory
- Direct Known Subclasses:
InsertMetadataObjectFullNameVariableFactory
public class InsertMetadataObjectNameVariableFactory extends Object implements IVariableFactory
Factory for creatingInsertMetadataObjectNameVariable
-
-
Field Summary
Fields Modifier and Type Field Description static String
INSERT_METADATA_OBJECT_NAME_ENG
Localized to english name of the variable to identify itstatic String
INSERT_METADATA_OBJECT_NAME_RU
Localized to russian name of the variable to identify it
-
Constructor Summary
Constructors Constructor Description InsertMetadataObjectNameVariableFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IVariable
create(IVariableOccurrence occurrence, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context)
Creates variables for given occurrenceprotected String
getDescription()
Gets creating variable descriptionIVariablePresentation
getPresentation()
Return presentation of the variable, that is created by this factoryprotected String
getVariableNameEn()
Gets English name of the creating variableprotected String
getVariableNameRu()
Gets Russian name of the creating variableprotected boolean
isFullNameMetadataObject()
Determinates that creating variable return full or not name of metadata object
-
-
-
Field Detail
-
INSERT_METADATA_OBJECT_NAME_RU
public static final String INSERT_METADATA_OBJECT_NAME_RU
Localized to russian name of the variable to identify it- See Also:
- Constant Field Values
-
INSERT_METADATA_OBJECT_NAME_ENG
public static final String INSERT_METADATA_OBJECT_NAME_ENG
Localized to english name of the variable to identify it- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public IVariable create(IVariableOccurrence occurrence, org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext context)
Description copied from interface:IVariableFactory
Creates variables for given occurrence- Specified by:
create
in interfaceIVariableFactory
context
- The context of this template, cannot benull
- Returns:
- The created variables, cannot be
null
-
getPresentation
public IVariablePresentation getPresentation()
Description copied from interface:IVariableFactory
Return presentation of the variable, that is created by this factory- Specified by:
getPresentation
in interfaceIVariableFactory
- Returns:
- The presentation of created variable, cannot be
null
-
getDescription
protected String getDescription()
Gets creating variable description- Returns:
- creating variable description, never
null
-
getVariableNameRu
protected String getVariableNameRu()
Gets Russian name of the creating variable- Returns:
- Russian name of the creating variable, never
null
-
getVariableNameEn
protected String getVariableNameEn()
Gets English name of the creating variable- Returns:
- English name of the creating variable, never
null
-
isFullNameMetadataObject
protected boolean isFullNameMetadataObject()
Determinates that creating variable return full or not name of metadata object- Returns:
true
if creating variable return full name of metadata object,false
otherwise
-
-