Class ConfiguratorVariableAdapter


  • public class ConfiguratorVariableAdapter
    extends Object
    Class to adapt configurator pattern to the EDT
    • Constructor Detail

      • ConfiguratorVariableAdapter

        public ConfiguratorVariableAdapter​(IVariableFinder finder)
        Creates new instance of this with given finder to find variables inside pattern
        Parameters:
        finder - The finder to find variables, cannot be null
    • Method Detail

      • adaptPattern

        public String adaptPattern​(String pattern)
                            throws org.eclipse.text.edits.MalformedTreeException,
                                   org.eclipse.jface.text.BadLocationException
        Adapts pattern to the EDT representation.
        Parameters:
        pattern - The pattern to adapt, cannot be null
        Returns:
        The adapted pattern ,cannot be null
        Throws:
        org.eclipse.text.edits.MalformedTreeException - and
        org.eclipse.jface.text.BadLocationException - if changes to adapt cannot be applied