Package org.python.pydev.parser

Examples of org.python.pydev.parser.PyParser$ParserInfo


        public AnalyzeOnRequestAction(PyEdit edit) {
            this.edit = edit;
        }

        public void run() {
            PyParser parser = edit.getParser();
            parser.forceReparse(new Tuple<String, Boolean>(AnalysisParserObserver.ANALYSIS_PARSER_OBSERVER_FORCE, true));
        }
View Full Code Here


    public void afterPerformArrangeImports(PySelection ps, PyEdit pyEdit) {
        if (!AutoImportsPreferencesPage.doAutoImportOnOrganizeImports()) {
            return;
        }
        if (pyEdit != null) {
            PyParser parser = pyEdit.getParser();
            if (parser != null) {
                parser.forceReparse(new Tuple<String, Boolean>(AnalysisParserObserver.ANALYSIS_PARSER_OBSERVER_FORCE,
                        true));
            }
        }

    }
View Full Code Here

        }

        @Override
        protected IStatus run(IProgressMonitor monitor) {
            IParserObserver observer = new RenameInFileParserObserver();
            PyParser parser = pyEdit.getParser();
            parser.addParseListener(observer); //it will analyze when the next parse is finished
            parser.forceReparse();
            return Status.OK_STATUS;
        }
View Full Code Here

        } else {
            //We don't have a match: ask for a reparse
            Object lock = new Object();
            for (PyEdit pyEdit : askReparse) {
                IParserObserver observer = new FindParserObserver(pyEdit, askReparse, lock);
                PyParser parser = pyEdit.getParser();
                parser.addParseListener(observer); //it will analyze when the next parse is finished
                parser.forceReparse();
            }
        }
    }
View Full Code Here

        this.edit = edit;
    }

    protected void forceReparseInBaseEditorAnd(PyEdit... others) {
        if (edit != null) {
            PyParser parser = edit.getParser();
            parser.forceReparse(new Tuple<String, Boolean>(AnalysisParserObserver.ANALYSIS_PARSER_OBSERVER_FORCE, true));
        }

        for (PyEdit e : others) {
            PyParser parser = e.getParser();
            parser.forceReparse(new Tuple<String, Boolean>(AnalysisParserObserver.ANALYSIS_PARSER_OBSERVER_FORCE, true));
        }
    }
View Full Code Here

TOP

Related Classes of org.python.pydev.parser.PyParser$ParserInfo

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.