Class DateVariable

  • All Implemented Interfaces:
    IVariable

    public class DateVariable
    extends AbstractVariable
    The variable that represents a date of the applying
    • Constructor Detail

      • DateVariable

        public DateVariable​(String pattern,
                            org.eclipse.jface.text.IRegion region)
        Creates new date variable in given region withgiven date pattern
        Parameters:
        pattern - The date pattern that describes the date presentation style ,cannot be null
        region - The region of this variable in the template, cannot be null
    • Method Detail

      • getVariableText

        protected String getVariableText()
        Description copied from class: AbstractVariable
        Returns text of the variable for the given region
        Specified by:
        getVariableText in class AbstractVariable
        Returns:
        The text of the variable for the given region, can be null