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

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


            ITextSelection selection) {
        this.methodName = "pepticMethod";
        this.scopeAdapter = scopeAdapter;
        this.selection = selection;
        this.parsedSelection = parsedSelection;
        this.deducer = new ParameterReturnDeduce(this.scopeAdapter, selection, module);
        this.parameterOrder = new ArrayList<String>();
        parameterOrder.addAll(deducer.getParameters());
        this.renameMap = new TreeMap<String, String>();
        initRenamedMap();
        this.adapterPrefs = module.getAdapterPrefs();
View Full Code Here


    private MockupExtractMethodRequestProcessor setupRequestProcessor(MockupExtractMethodConfig config,
            ModuleAdapter module, RefactoringInfo info) {
        ModuleAdapter parsedSelection = info.getParsedExtendedSelection();

        AbstractScopeNode<?> scope = module.getScopeAdapter(info.getExtendedSelection());
        ParameterReturnDeduce deducer = new ParameterReturnDeduce(scope, info.getExtendedSelection(), module);

        SortedMap<String, String> renameMap = new TreeMap<String, String>();
        for (String variable : deducer.getParameters()) {
            String newName = variable;
            if (config.getRenameMap().containsKey(variable)) {
                newName = config.getRenameMap().get(variable);
            }
            renameMap.put(variable, newName);
View Full Code Here

TOP

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

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.