Package org.erlide.wrangler.refactoring.backend

Examples of org.erlide.wrangler.refactoring.backend.IRefactoringRpcMessage


    @Override
    public RefactoringStatus checkFinalConditions(final IProgressMonitor pm)
            throws CoreException, OperationCanceledException {
        final IErlSelection sel = GlobalParameters.getWranglerSelection();
        final IRefactoringRpcMessage theMessage = run(sel);
        if (theMessage.isSuccessful()) {
            changedFiles = theMessage.getRefactoringChangeset();
            return new RefactoringStatus();
        }
        return RefactoringStatus.createFatalErrorStatus(theMessage.getMessageString());
    }
View Full Code Here


        return new RefactoringWorkflowController(shell) {

            @Override
            public void doRefactoring() {
                final IErlSelection sel = GlobalParameters.getWranglerSelection();
                IRefactoringRpcMessage message = run(sel);
                if (message.isSuccessful()) {
                    changedFiles = message.getRefactoringChangeset();
                    status = new RefactoringStatus();
                } else if (message.getRefactoringState() == RefactoringState.QUESTION) {
                    renameTestMod = ask("Question", message.getMessageString());
                    message = runAlternative(sel);
                    if (message.getRefactoringState() == RefactoringState.OK) {
                        changedFiles = message.getRefactoringChangeset();
                        status = new RefactoringStatus();
                    } else {
                        status = RefactoringStatus.createFatalErrorStatus(message
                                .getMessageString());
                    }
                } else if (message.getRefactoringState() == RefactoringState.WARNING) {
                    renameTestMod = !ask("Warning", message.getMessageString());
                    if (!renameTestMod) {
                        message = runAlternative(sel);
                        if (message.getRefactoringState() == RefactoringState.OK) {
                            changedFiles = message.getRefactoringChangeset();
                            status = new RefactoringStatus();
                        } else {
                            status = RefactoringStatus.createFatalErrorStatus(message
                                    .getMessageString());
                        }
                    } else {
                        stop();
                    }
                } else {
                    status = RefactoringStatus.createFatalErrorStatus(message
                            .getMessageString());
                }
            }

        };
View Full Code Here

    @Override
    public RefactoringStatus checkFinalConditions(final IProgressMonitor pm)
            throws CoreException, OperationCanceledException {
        final IErlSelection sel = GlobalParameters.getWranglerSelection();
        final IRefactoringRpcMessage message = run(sel);
        if (message.isSuccessful()) {
            changedFiles = message.getRefactoringChangeset();
            return new RefactoringStatus();
        }
        return RefactoringStatus.createFatalErrorStatus(message.getMessageString());
    }
View Full Code Here

    @Override
    public RefactoringStatus checkFinalConditions(final IProgressMonitor pm)
            throws CoreException, OperationCanceledException {
        final IErlSelection sel = GlobalParameters.getWranglerSelection();
        IRefactoringRpcMessage message = run(sel);
        if (message.isSuccessful()) {
            changedFiles = message.getRefactoringChangeset();
            return new RefactoringStatus();
        } else if (message.getRefactoringState() == RefactoringState.QUESTION) {
            message = run2(sel);
            if (message.isSuccessful()) {
                changedFiles = message.getRefactoringChangeset();
                return new RefactoringStatus();
            }
            return RefactoringStatus.createFatalErrorStatus(message.getMessageString());
        } else {
            return RefactoringStatus.createFatalErrorStatus(message.getMessageString());
        }
    }
View Full Code Here

        return "eqc_fsm State data to record";
    }

    @Override
    protected StateDataToRecordRpcMessage runFirst(final IErlMemberSelection sel) {
        final IRefactoringRpcMessage parser = new StateDataToRecordRpcMessage();

        return (StateDataToRecordRpcMessage) WranglerBackendManager
                .getRefactoringBackend().callWithParser(parser,
                        "eqc_fsm_to_record_eclipse", "sxi", sel.getFilePath(),
                        sel.getSearchPath(), GlobalParameters.getTabWidth());
View Full Code Here

    @Override
    public RefactoringStatus checkFinalConditions(final IProgressMonitor pm)
            throws CoreException, OperationCanceledException {
        final IErlSelection sel = GlobalParameters.getWranglerSelection();
        final IRefactoringRpcMessage message = run(sel);
        if (message.isSuccessful()) {
            changedFiles = message.getRefactoringChangeset();
            return new RefactoringStatus();
        }
        return RefactoringStatus.createFatalErrorStatus(message.getMessageString());
    }
View Full Code Here

        if (msg.isSuccessful()) {
            changedFiles = msg.getRefactoringChangeset();
            return new RefactoringStatus();
        } else if (msg.hasUndecidables()) {
            undecidables = msg.getMessageString();
            final IRefactoringRpcMessage message = run(sel);
            changedFiles = message.getRefactoringChangeset();

            return RefactoringStatus.createWarningStatus(getUndecidableWarningMessage());
        } else {
            return RefactoringStatus.createFatalErrorStatus(msg.getMessageString());
View Full Code Here

    @Override
    public RefactoringStatus checkFinalConditions(final IProgressMonitor pm)
            throws CoreException, OperationCanceledException {
        final IErlSelection sel = GlobalParameters.getWranglerSelection();
        final IRefactoringRpcMessage message = run(sel);
        if (message.isSuccessful()) {
            changedFiles = message.getRefactoringChangeset();
            return new RefactoringStatus();
        }
        return RefactoringStatus.createFatalErrorStatus(message.getMessageString());
    }
View Full Code Here

    @Override
    public RefactoringStatus checkFinalConditions(final IProgressMonitor pm)
            throws CoreException, OperationCanceledException {
        final IErlSelection sel = GlobalParameters.getWranglerSelection();
        final IRefactoringRpcMessage message = run(sel);
        if (message.isSuccessful()) {
            changedFiles = message.getRefactoringChangeset();
            return new RefactoringStatus();
        }
        return RefactoringStatus.createFatalErrorStatus(message.getMessageString());
    }
View Full Code Here

        return "gen_fsm State data to record";
    }

    @Override
    protected StateDataToRecordRpcMessage runFirst(final IErlMemberSelection sel) {
        final IRefactoringRpcMessage parser = new StateDataToRecordRpcMessage();

        return (StateDataToRecordRpcMessage) WranglerBackendManager
                .getRefactoringBackend().callWithParser(parser,
                        "gen_fsm_to_record_eclipse", "sxi", sel.getFilePath(),
                        sel.getSearchPath(), GlobalParameters.getTabWidth());
View Full Code Here

TOP

Related Classes of org.erlide.wrangler.refactoring.backend.IRefactoringRpcMessage

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.