Package org.erlide.backend.debug

Examples of org.erlide.backend.debug.BackendEvalResult


                final TableItem item = t.getItem(new Point(event.x, event.y));
                if (item != null) {
                    String str = item.getText(1);
                    if (str.length() > 0) {
                        // ErlLogger.debug(str);
                        final BackendEvalResult r = EvalHelper.eval(backend,
                                "lists:flatten(io_lib:format(\"~p\", [" + item.getText(1)
                                        + "])).", null);
                        if (r.isOk()) {
                            str = OtpErlang.asString(r.getValue());
                        } else {
                            str = r.getErrorReason().toString();
                        }
                        info = new SourceViewerInformationControl(t.getShell(),
                                SWT.ON_TOP | SWT.TOOL | SWT.RESIZE, SWT.MULTI | SWT.WRAP,
                                PreferenceConstants.EDITOR_TEXT_FONT, null);
                        info.setForegroundColor(t.getDisplay().getSystemColor(
View Full Code Here


            }
            return cachedValue;
        }

        private String evaluate() {
            final BackendEvalResult r = EvalHelper.eval(b, fExpr + ".", null);
            if (r.isOk()) {
                return r.getValue().toString();
            }
            return "ERR: " + r.getErrorReason().toString();
        }
View Full Code Here

TOP

Related Classes of org.erlide.backend.debug.BackendEvalResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.