function convertToUppercase()
{
    Application.TextEdit.currentEditor().text =
            Application.TextEdit.currentEditor().text.upper();
}

function converToLowercase()
{
    Application.TextEdit.currentEditor().text =
            Application.TextEdit.currentEditor().text.lower();
}