Examples of ExtractMethodEdit


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

            processExtraction(req);
        }
    }

    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

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

    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
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.