Package org.python.pydev.refactoring.coderefactoring.extractmethod.edit

Examples of org.python.pydev.refactoring.coderefactoring.extractmethod.edit.ExtractCallEdit


        }
    }

    private void processExtraction(ExtractMethodRequest req) throws MisconfigurationException {
        ExtractMethodEdit extractedMethodEdit = new ExtractMethodEdit(req);
        ExtractCallEdit callExtractedMethodEdit = new ExtractCallEdit(req);

        registerEdit(extractedMethodEdit, Messages.extractMethodChangeName);
        registerEdit(callExtractedMethodEdit, Messages.extractMethodReplaceWithCall);
    }
View Full Code Here


    private IDocument applyExtractMethod(RefactoringInfo info, MockupExtractMethodRequestProcessor requestProcessor)
            throws BadLocationException, MalformedTreeException, MisconfigurationException {
        ExtractMethodRequest req = requestProcessor.getRefactoringRequests().get(0);

        ExtractMethodEdit extractedMethodEdit = new ExtractMethodEdit(req);
        ExtractCallEdit callExtractedMethodEdit = new ExtractCallEdit(req);

        MultiTextEdit edit = new MultiTextEdit();
        edit.addChild(extractedMethodEdit.getEdit());
        edit.addChild(callExtractedMethodEdit.getEdit());

        IDocument refactoringDoc = new Document(data.source);
        edit.apply(refactoringDoc);
        return refactoringDoc;
    }
View Full Code Here

TOP

Related Classes of org.python.pydev.refactoring.coderefactoring.extractmethod.edit.ExtractCallEdit

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.