Examples of RenameTypeProcessor


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

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

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

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

      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

Examples of org.pdtextensions.internal.corext.refactoring.rename.RenameTypeProcessor

      // TODO Add namespace support like JDT
      return new RenameSupport(new RenameScriptFolderProcessor((IScriptFolder) element), newName, flags);
    case IModelElement.SOURCE_MODULE:
      return new RenameSupport(new RenameSourceModuleProcessor((ISourceModule) element), newName, flags);
    case IModelElement.TYPE:
      return new RenameSupport(new RenameTypeProcessor((IType) element), newName, flags);
    case IModelElement.METHOD:
      return new RenameSupport(new RenameMethodProcessor((IMethod) element), newName, flags);
    case IModelElement.FIELD:
      if (((IField) element).getDeclaringType() == null) {
        return new RenameSupport(new RenameLocalVariableProcessor((IField) element), newName, flags);
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.