Package org.eclipse.jdt.internal.corext.refactoring.rename

Examples of org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeProcessor


    if (newName.contains("_")) {
      // don't rename java file in case of a variation
      return new NullChange("Java file part of wicket won't be renamed.");
    }
    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);
  }
View Full Code Here


                new RenameCompilationUnitProcessor(
                    processedUnit
                );
            }
            else {
              p = new RenameTypeProcessor(javaElement);
            }
            p.setNewElementName(newName);
            Refactoring r = new RenameRefactoring(p);
            PerformRefactoringOperation op =
              new PerformRefactoringOperation(
View Full Code Here

      Field renameSubpackages =
        RenamePackageProcessor.class.getDeclaredField("fRenameSubpackages");
      renameSubpackages.setAccessible(true);
      renameSubpackages.setBoolean(processor, true);
    }else if (element instanceof IType){
      processor = new RenameTypeProcessor((IType)element);
    }else if (element instanceof IMethod){
      IMethod method = (IMethod)element;
      if (MethodChecks.isVirtual(method)) {
        processor = new RenameVirtualMethodProcessor(method);
      } else {
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeProcessor

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.