Log.log(Log.ERROR, this, e.getMessage());
RubyPlugin.error(e.getMessage());
    private String readFile(File file) {        StringBuffer buffer = new StringBuffer();        try {            BufferedReader bufferedReader = new BufferedReader(new FileReader(file));            try {                char[] chars = new char[1024];                int length;                while (-1 != (length = bufferedReader.read(chars))) {                    buffer.append(chars, 0, length);                }            } catch (IOException e) {                Log.log(Log.ERROR, this, e.getMessage());                e.printStackTrace();            }        } catch (FileNotFoundException e) {            Log.log(Log.ERROR, this, e.getMessage());            e.printStackTrace();        }        return buffer.toString();    }