Package org.eclipse.ltk.core.refactoring

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


    @Override
    public RefactoringStatus checkInitialConditions(final IProgressMonitor pm)
            throws CoreException, OperationCanceledException {
        final IErlSelection sel = GlobalParameters.getWranglerSelection();
        if (sel instanceof IErlMemberSelection) {
            return new RefactoringStatus();
        }

        return RefactoringStatus.createFatalErrorStatus("Please select an expression!");
    }
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

            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.WARNING) {
                    if (ask("Warning", message.getMessageString())) {
                        message = runAlternative(sel);
                        if (message.getRefactoringState() == RefactoringState.OK) {
                            status = new RefactoringStatus();
                        } else {
                            status = RefactoringStatus.createFatalErrorStatus(message
                                    .getMessageString());
                        }
                    } else {
View Full Code Here

            public void doRefactoring() {
                final IErlSelection sel = GlobalParameters.getWranglerSelection();
                final IRefactoringRpcMessage message = run(sel);
                if (message.isSuccessful()) {
                    changedFiles = message.getRefactoringChangeset();
                    status = new RefactoringStatus();
                } else {
                    status = RefactoringStatus.createFatalErrorStatus(message
                            .getMessageString());
                }
            }
View Full Code Here

            throws CoreException, OperationCanceledException {
        final IErlSelection sel = GlobalParameters.getWranglerSelection();
        if (sel instanceof IErlMemberSelection) {
            final SelectionKind kind = sel.getKind();
            if (kind == SelectionKind.FUNCTION_CLAUSE || kind == SelectionKind.FUNCTION) {
                return new RefactoringStatus();
            }
        }
        return RefactoringStatus.createFatalErrorStatus("Please select a function!");
    }
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

            throws CoreException, OperationCanceledException {
        final IErlSelection sel = GlobalParameters.getWranglerSelection();
        final IRefactoringRpcMessage message = run(sel);
        if (message.isSuccessful()) {
            changedFiles = message.getRefactoringChangeset();
            return new RefactoringStatus();
            // } else if (message.getRefactoringState() ==
            // RefactoringState.WARNING) {
            // return RefactoringStatus.createWarningStatus(message
            // .getMessageString());
        }
View Full Code Here

            throws CoreException, OperationCanceledException {
        final IErlSelection sel = GlobalParameters.getWranglerSelection();
        if (sel instanceof IErlMemberSelection) {
            final SelectionKind kind = sel.getKind();
            if (kind == SelectionKind.FUNCTION_CLAUSE || kind == SelectionKind.FUNCTION) {
                return new RefactoringStatus();
            }
        }
        return RefactoringStatus.createFatalErrorStatus("Please select a process!");
    }
View Full Code Here

    @Override
    public RefactoringStatus checkInitialConditions(final IProgressMonitor pm)
            throws CoreException, OperationCanceledException {
        // Guess, no initial condition
        return new RefactoringStatus();
    }
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.