Class SelectionVariable

  • All Implemented Interfaces:
    IVariable

    public class SelectionVariable
    extends AbstractVariable
    Variable that replaces region of the occurrence with the selected text
    • Constructor Detail

      • SelectionVariable

        public SelectionVariable​(String text,
                                 org.eclipse.jface.text.IRegion region)
        Creates new instance of this with given parameters
        Parameters:
        text - The text that is selected, cannot be null
        region - The region of the occurrence of this variable, 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