Package org.eclipse.ltk.core.refactoring

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


   * org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext)
   */
  @Override
  public RefactoringStatus checkConditions(final IProgressMonitor paramIProgressMonitor, final CheckConditionsContext paramCheckConditionsContext)
      throws OperationCanceledException {
    return new RefactoringStatus();
  }
View Full Code Here


  public void initializeValidationData(IProgressMonitor pm) {

  }

  public RefactoringStatus isValid(IProgressMonitor pm) throws CoreException, OperationCanceledException {
    return new RefactoringStatus();
  }
View Full Code Here

public class RemoteServiceDeleteParticipant extends DeleteParticipant {

  private ICompilationUnit compilationUnit;

  public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) throws OperationCanceledException {
    return new RefactoringStatus(); // we are OK to delete
  }
View Full Code Here

  private ICompilationUnit compilationUnit;

  @Override
  public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) throws OperationCanceledException {
    return new RefactoringStatus(); // we are OK to delete
  }
View Full Code Here

        HaxeRenameProcessor pr = RenameCommand.getAppropriateProcessor(node, "");
        if (pr == null)
        {
            return false;
        }
        RefactoringStatus status;
        try
        {
            status = pr.checkInitialConditions(new NullProgressMonitor());
        }
        catch (OperationCanceledException | CoreException e)
        {
            return false;
        }
       
        return status.isOK();
    }
View Full Code Here

        if (file.getRealFile().getResourceAttributes().isReadOnly())
        {
            return RefactoringStatus.createErrorStatus("File isn't editable");
        }
       
        return new RefactoringStatus();
    }
View Full Code Here

    @Override
    public RefactoringStatus checkInitialConditions(IProgressMonitor pm)
            throws CoreException, OperationCanceledException
    {
        RefactoringStatus status = super.checkInitialConditions(pm);
       
        if (!status.isOK())
        {
            return status;
        }
       
        DeclarationType type = targetNode.getDeclaratonType();
        HaxeTree searchScope = null;
        switch (type)
        {
            case FunctionParameter:
                searchScope = TreeUtils.getParentFunction(targetNode);
                break;
            case VarDeclaration:
                searchScope = TreeUtils.getParentFunction(targetNode);
                searchScope = ((Function)searchScope).getBlockScope();
                break;
            default:
                searchScope = TreeUtils.getParentType(targetNode);
                break;
        }
        if (TreeUtils.haveErrorNodes(searchScope))
        {
            return RefactoringStatus.createErrorStatus(
                    "There are parsing errors. Rename couldn't be processed.");
        }
        return new RefactoringStatus();
    }
View Full Code Here

            {
                return RefactoringStatus.createErrorStatus("Name collision.");
            }
        }
        // TODO do checkNameAvailability
        return new RefactoringStatus();
    }
View Full Code Here

    @Override
    public RefactoringStatus checkInitialConditions(IProgressMonitor pm)
            throws CoreException, OperationCanceledException
    {
        RefactoringStatus status = super.checkInitialConditions(pm);
       
        if (!status.isOK())
        {
            return status;
        }
       
        HaxeTree searchScope = TreeUtils.getParentType(targetNode);
       
        if (TreeUtils.haveErrorNodes(searchScope))
        {
            return RefactoringStatus.createErrorStatus(
                    "There are parsing errors. Rename couldn't be processed.");
        }
        return new RefactoringStatus();
    }
View Full Code Here

    }

    @Override
    protected RefactoringStatus checkNameAvailability()
    {
        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.