Package org.python.pydev.editor.actions.refactoring

Examples of org.python.pydev.editor.actions.refactoring.PyRefactorAction


        if (pyEdit.getSelectionProvider() == null) {
            return new Tuple3<RefactoringRequest, PyRenameEntryPoint, Boolean>(null, null, false);
        }

        //ok, the editor is still there wit ha document... move on
        PyRefactorAction pyRefactorAction = getRefactorAction(pyEdit);

        final RefactoringRequest req = getRefactoringRequest(pyEdit, pyRefactorAction, this.ps);

        if (req == null || !req.nature.getRelatedInterpreterManager().isConfigured()) { //we check if it's configured because it may still be a stub...
            return new Tuple3<RefactoringRequest, PyRenameEntryPoint, Boolean>(null, null, false);
View Full Code Here


    /**
     * @param pyEdit the editor that will have this action
     * @return the action (with the pyedit attached to it)
     */
    public static PyRefactorAction getRefactorAction(PyEdit pyEdit) {
        PyRefactorAction pyRefactorAction = new PyRefactorAction() {

            @Override
            protected String perform(IAction action, IProgressMonitor monitor) throws Exception {
                throw new RuntimeException("Perform should not be called in this case.");
            }
        };
        pyRefactorAction.setEditor(pyEdit);
        return pyRefactorAction;
    }
View Full Code Here

TOP

Related Classes of org.python.pydev.editor.actions.refactoring.PyRefactorAction

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.