Package org.python.pydev.refactoring.coderefactoring.inlinelocal

Examples of org.python.pydev.refactoring.coderefactoring.inlinelocal.InlineLocalRefactoring


import org.python.pydev.refactoring.ui.pages.inlinelocal.InlineTempInputPage;

public class InlineLocalAction extends AbstractRefactoringAction {
    @Override
    protected AbstractPythonRefactoring createRefactoring(RefactoringInfo info) {
        return new InlineLocalRefactoring(info);
    }
View Full Code Here


            public int getGrammarVersion() throws MisconfigurationException {
                return IGrammarVersionProvider.GRAMMAR_PYTHON_VERSION_2_7;
            }
        });
        InlineLocalRefactoring refactoring = new InlineLocalRefactoring(info);

        NullProgressMonitor monitor = new NullProgressMonitor();
        RefactoringStatus result = refactoring.checkAllConditions(monitor);

        assertTrue("Refactoring is not ok: " + result.getMessageMatchingSeverity(RefactoringStatus.WARNING),
                result.isOK());

        Change change = refactoring.createChange(monitor);
        change.perform(monitor);

        assertEquals(data.result, document.get());

        FileUtilsFileBuffer.IN_TESTS = false;
View Full Code Here

TOP

Related Classes of org.python.pydev.refactoring.coderefactoring.inlinelocal.InlineLocalRefactoring

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.