public void setKey(Object defaultKey)
    {
        Assert.isTrue(fValueMap.containsKey(defaultKey));
        if (!fKey.equals(defaultKey)) {
            fKey = defaultKey;
            fCurrentChoice = getChoices()[0];
        }
    }
Sets the values of this variable under a specific key.

@param key    the key for which the values are valid
@param values the possible values of this variable
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/templates/SQLVariable.java