Package org.erlide.wrangler.refactoring.selection.IErlSelection

Examples of org.erlide.wrangler.refactoring.selection.IErlSelection.SelectionKind


    @Override
    public RefactoringStatus checkInitialConditions(final IProgressMonitor pm)
            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) {
                final IErlMemberSelection s = (IErlMemberSelection) sel;
                numberOfTuplingParameters = calculateParametersNumber(WranglerUtils
                        .getTextFromEditor(s.getSelectionRange(), s.getDocument()));
                if (numberOfTuplingParameters > 0) {
View Full Code Here


    @Override
    public RefactoringStatus checkInitialConditions(final IProgressMonitor pm)
            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();
            }
        }
View Full Code Here

    @Override
    public RefactoringStatus checkInitialConditions(final IProgressMonitor pm)
            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

    @Override
    public RefactoringStatus checkInitialConditions(final IProgressMonitor pm)
            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

TOP

Related Classes of org.erlide.wrangler.refactoring.selection.IErlSelection.SelectionKind

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.