Package org.eclipse.ltk.core.refactoring.participants

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


      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

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.