Package org.python.pydev.parser

Examples of org.python.pydev.parser.ErrorDescription


                }

                try {
                    if (info.addAstInfo(key, false) == null) {
                        String str = "Unable to generate ast -- using %s.\nError:%s";
                        ErrorDescription errorDesc = null;
                        throw new RuntimeException(com.aptana.shared_core.string.StringUtils.format(str, PyParser
                                .getGrammarVersionStr(grammarVersion),
                                (errorDesc != null && errorDesc.message != null) ? errorDesc.message
                                        : "unable to determine"));
                    }
View Full Code Here


     * This event comes when parse ended in an error
     *
     * Generates an error marker on the document
     */
    public void parserError(Throwable error, IAdaptable original, IDocument doc) {
        ErrorDescription errDesc = null;

        try {
            errDesc = PyParser.createParserErrorMarkers(error, original, doc);

        } catch (CoreException e1) {
View Full Code Here

                        StructuredSelection sel = (StructuredSelection) event.getSelection();

                        boolean alreadySelected = false;
                        if (sel.size() == 1) { // only sync the editing view if it is a single-selection
                            ParsedItem firstElement = (ParsedItem) sel.getFirstElement();
                            ErrorDescription errorDesc = firstElement.getErrorDesc();

                            //select the error
                            if (errorDesc != null && errorDesc.message != null) {
                                int len = errorDesc.errorEnd - errorDesc.errorStart;
                                editorView.setSelection(errorDesc.errorStart, len);
View Full Code Here

TOP

Related Classes of org.python.pydev.parser.ErrorDescription

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.