Examples of checkFinalConditions()


Examples of com.python.pydev.refactoring.wizards.rename.PyRenameEntryPoint.checkFinalConditions()

        PyRenameEntryPoint processor = new PyRenameEntryPoint(req);

        //process it to get what we need
        processor.checkInitialConditions(monitor);
        processor.checkFinalConditions(monitor, null);
        HashSet<ASTEntry> occurrences = processor.getOccurrences();

        if (monitor.isCanceled()) {
            return false;
        }
View Full Code Here

Examples of com.python.pydev.refactoring.wizards.rename.PyRenameEntryPoint.checkFinalConditions()

            processor.checkInitialConditions(monitor);
            if (currRequestTime != lastRequestTime || monitor.isCanceled()) {
                return new Tuple3<RefactoringRequest, PyRenameEntryPoint, Boolean>(null, null, false);
            }

            processor.checkFinalConditions(monitor, null);
            if (currRequestTime != lastRequestTime || monitor.isCanceled()) {
                return new Tuple3<RefactoringRequest, PyRenameEntryPoint, Boolean>(null, null, false);
            }

            //ok, pre-conditions suceeded
View Full Code Here

Examples of com.python.pydev.refactoring.wizards.rename.PyRenameEntryPoint.checkFinalConditions()

                req.popMonitor().done();
            }
            req.checkCancelled();
            try {
                req.pushMonitor(new SubProgressMonitor(monitor, 85));
                status = processor.checkFinalConditions(req.getMonitor(), null, false);
                if (status.getSeverity() == RefactoringStatus.FATAL) {
                    return null;
                }
            } finally {
                req.popMonitor().done();
View Full Code Here

Examples of com.python.pydev.refactoring.wizards.rename.PyRenameEntryPoint.checkFinalConditions()

     */
    protected void applyRenameRefactoring(RefactoringRequest request, boolean expectError) throws CoreException {
        PyRenameEntryPoint processor = new PyRenameEntryPoint(request);
        NullProgressMonitor nullProgressMonitor = new NullProgressMonitor();
        checkStatus(processor.checkInitialConditions(nullProgressMonitor), expectError);
        checkStatus(processor.checkFinalConditions(nullProgressMonitor, null), expectError);
        Change change = processor.createChange(nullProgressMonitor);
        if (!expectError) {
            //otherwise, if there is an error, the change may be null
            change.perform(nullProgressMonitor);
        }
View Full Code Here

Examples of com.python.pydev.refactoring.wizards.rename.PyRenameEntryPoint.checkFinalConditions()

            NullProgressMonitor nullProgressMonitor = new NullProgressMonitor();
            checkStatus(processor.checkInitialConditions(nullProgressMonitor), expectError);
            lastProcessorUsed = processor;
            checkProcessors();

            checkStatus(processor.checkFinalConditions(nullProgressMonitor, null, false), expectError);
            occurrencesToReturn = processor.getOccurrencesInOtherFiles();
            occurrencesToReturn.put(new Tuple<String, File>(CURRENT_MODULE_IN_REFERENCES, null),
                    processor.getOccurrences());
        } catch (Exception e) {
            throw new RuntimeException(e);
View Full Code Here

Examples of workspace.refactoring.HaxeRenameProcessor.checkFinalConditions()

                return null;
            }
            HaxeRenameProcessor processor = getAppropriateProcessor(node, newName);
            Change change = processor.createChange(null);
            IProgressMonitor monitor = new NullProgressMonitor();
            if (processor.checkFinalConditions(monitor, null).isOK())
            {
                change.perform(monitor);               
            }
        }
        catch (ClassCastException  e)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.