final IDocument document = textEditor.getDocumentProvider().getDocument(
textEditor.getEditorInput());
final String text = document.get();
final String scannerName = module.getScannerName();
final InternalScanner internalScanner = (InternalScanner) ErlangEngine
.getInstance().getSimpleScannerService();
final OtpErlangObject checkAll = internalScanner.checkAll(scannerName, text,
true);
String s;
if (checkAll instanceof OtpErlangTuple) {
final OtpErlangTuple t = (OtpErlangTuple) checkAll;
s = Util.stringValue(t.elementAt(0));