Examples of checkAllConditions()


Examples of org.eclipse.ltk.core.refactoring.Refactoring.checkAllConditions()

    try{
      NullProgressMonitor monitor = new NullProgressMonitor();
      Refactor refactor = createRefactoring(commandLine);
      Refactoring refactoring = refactor.refactoring;

      RefactoringStatus status = refactoring.checkAllConditions(
          new SubProgressMonitor(monitor, 4));
      int stopSeverity = RefactoringCore.getConditionCheckingFailedSeverity();
      if (status.getSeverity() >= stopSeverity) {
        throw new RefactorException(status);
      }
View Full Code Here

Examples of org.eclipse.ltk.core.refactoring.participants.RenameRefactoring.checkAllConditions()

    final RenameTypeProcessor jrp = new RenameTypeProcessor(compilationUnit.getAllTypes()[0]);
    final RenameRefactoring rr = new RenameRefactoring(jrp);
    jrp.setNewElementName(newName);
    jrp.setUpdateQualifiedNames(true);
    jrp.setUpdateReferences(true);
    rr.checkAllConditions(paramIProgressMonitor);
    return rr.createChange(paramIProgressMonitor);
  }

  /*
   * (non-Javadoc)
 
View Full Code Here

Examples of org.eclipse.ltk.core.refactoring.participants.RenameRefactoring.checkAllConditions()

      throws Exception {
    RenameSupport renameSupport =
        RenameSupport.create(method, newName, RenameSupport.UPDATE_REFERENCES);
    RenameRefactoring refactoring =
        (RenameRefactoring) ReflectionUtils.getFieldObject(renameSupport, "fRefactoring");
    refactoring.checkAllConditions(pm);
    return refactoring.createChange(pm);
  }

  /**
   * @return the <code>*.ui.xml</code> file {@link Change}.
View Full Code Here

Examples of org.python.pydev.refactoring.coderefactoring.extractlocal.ExtractLocalRefactoring.checkAllConditions()

        ExtractLocalRequestProcessor requestProcessor = refactoring.getRequestProcessor();
        requestProcessor.setVariableName("extracted_variable");
        requestProcessor.setReplaceDuplicates(true);

        NullProgressMonitor monitor = new NullProgressMonitor();
        RefactoringStatus result = refactoring.checkAllConditions(monitor);

        assertTrue("Refactoring is not ok: " + result.getMessageMatchingSeverity(RefactoringStatus.WARNING),
                result.isOK());

        Change change = refactoring.createChange(monitor);
View Full Code Here

Examples of org.python.pydev.refactoring.coderefactoring.inlinelocal.InlineLocalRefactoring.checkAllConditions()

            }
        });
        InlineLocalRefactoring refactoring = new InlineLocalRefactoring(info);

        NullProgressMonitor monitor = new NullProgressMonitor();
        RefactoringStatus result = refactoring.checkAllConditions(monitor);

        assertTrue("Refactoring is not ok: " + result.getMessageMatchingSeverity(RefactoringStatus.WARNING),
                result.isOK());

        Change change = refactoring.createChange(monitor);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.