Examples of checkInitialConditions()


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

        }

        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.checkInitialConditions()

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

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

            processor.checkFinalConditions(monitor, null);
View Full Code Here

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

            monitor.beginTask("Find all occurrences", 100);
            monitor.setTaskName("Find all occurrences");
            RefactoringStatus status;
            try {
                req.pushMonitor(new SubProgressMonitor(monitor, 10));
                status = processor.checkInitialConditions(req.getMonitor());
                if (status.getSeverity() == RefactoringStatus.FATAL) {
                    return null;
                }
            } finally {
                req.popMonitor().done();
View Full Code Here

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

    /** Applies a rename refactoring
     */
    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.checkInitialConditions()

            request.moduleName = moduleName;
            request.fillInitialNameAndOffset();

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

            checkStatus(processor.checkFinalConditions(nullProgressMonitor, null, false), expectError);
            occurrencesToReturn = processor.getOccurrencesInOtherFiles();
View Full Code Here

Examples of workspace.refactoring.HaxeRenameProcessor.checkInitialConditions()

            return false;
        }
        RefactoringStatus status;
        try
        {
            status = pr.checkInitialConditions(new NullProgressMonitor());
        }
        catch (OperationCanceledException | CoreException e)
        {
            return false;
        }
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.