Package org.eclipse.ltk.core.refactoring

Examples of org.eclipse.ltk.core.refactoring.RefactoringStatus


            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 (kind == SelectionKind.FUNCTION_CLAUSE || kind ==
         * SelectionKind.FUNCTION) return new RefactoringStatus(); } return
         * RefactoringStatus
         * .createFatalErrorStatus("Please select a function!");
         */
        return new RefactoringStatus();
    }
View Full Code Here

            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

            if (kind == SelectionKind.FUNCTION_CLAUSE || kind == SelectionKind.FUNCTION) {
                final IErlMemberSelection s = (IErlMemberSelection) sel;
                numberOfTuplingParameters = calculateParametersNumber(WranglerUtils
                        .getTextFromEditor(s.getSelectionRange(), s.getDocument()));
                if (numberOfTuplingParameters > 0) {
                    return new RefactoringStatus();
                }
            }
        }
        return RefactoringStatus
                .createFatalErrorStatus("Please select function parameters!");
View Full Code Here

    @Override
    public RefactoringStatus checkInitialConditions(final IProgressMonitor pm)
            throws CoreException, OperationCanceledException {

        return new RefactoringStatus();
    }
View Full Code Here

            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

            positions = m.getPositionDefinitions(sel.getDocument());
            selectedPositions = new ArrayList<IErlRange>();
        } else {
            return RefactoringStatus.createFatalErrorStatus(m.getMessageString());
        }
        return new RefactoringStatus();
    }
View Full Code Here

        final ProcessRpcMessage msg = checkUndecidables((IErlMemberSelection) sel);

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

            positions = m.getPositionDefinitions(sel.getDocument());
            selectedPositions = new ArrayList<IErlRange>();
        } else {
            return RefactoringStatus.createFatalErrorStatus(m.getMessageString());
        }
        return new RefactoringStatus();

    }
View Full Code Here

            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

TOP

Related Classes of org.eclipse.ltk.core.refactoring.RefactoringStatus

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.