Search in sources :

Example 6 with JavaRefactoringArguments

use of org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringArguments in project che by eclipse.

the class RenameTypeParameterRefactoringContribution method createRefactoring.

/**
	 * {@inheritDoc}
	 */
@Override
public Refactoring createRefactoring(JavaRefactoringDescriptor descriptor, RefactoringStatus status) {
    JavaRefactoringArguments arguments = new JavaRefactoringArguments(descriptor.getProject(), retrieveArgumentMap(descriptor));
    RenameTypeParameterProcessor processor = new RenameTypeParameterProcessor(arguments, status);
    return new RenameRefactoring(processor);
}
Also used : JavaRefactoringArguments(org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringArguments) RenameRefactoring(org.eclipse.ltk.core.refactoring.participants.RenameRefactoring) RenameTypeParameterProcessor(org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeParameterProcessor)

Example 7 with JavaRefactoringArguments

use of org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringArguments in project che by eclipse.

the class RenameTypeRefactoringContribution method createRefactoring.

/**
	 * {@inheritDoc}
	 */
@Override
public Refactoring createRefactoring(JavaRefactoringDescriptor descriptor, RefactoringStatus status) {
    JavaRefactoringArguments arguments = new JavaRefactoringArguments(descriptor.getProject(), retrieveArgumentMap(descriptor));
    RenameTypeProcessor processor = new RenameTypeProcessor(arguments, status);
    return new RenameRefactoring(processor);
}
Also used : JavaRefactoringArguments(org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringArguments) RenameTypeProcessor(org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeProcessor) RenameRefactoring(org.eclipse.ltk.core.refactoring.participants.RenameRefactoring)

Example 8 with JavaRefactoringArguments

use of org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringArguments in project che by eclipse.

the class RenameEnumConstRefactoringContribution method createRefactoring.

/**
	 * {@inheritDoc}
	 */
@Override
public Refactoring createRefactoring(JavaRefactoringDescriptor descriptor, RefactoringStatus status) {
    JavaRefactoringArguments arguments = new JavaRefactoringArguments(descriptor.getProject(), retrieveArgumentMap(descriptor));
    RenameEnumConstProcessor processor = new RenameEnumConstProcessor(arguments, status);
    return new RenameRefactoring(processor);
}
Also used : JavaRefactoringArguments(org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringArguments) RenameEnumConstProcessor(org.eclipse.jdt.internal.corext.refactoring.rename.RenameEnumConstProcessor) RenameRefactoring(org.eclipse.ltk.core.refactoring.participants.RenameRefactoring)

Aggregations

JavaRefactoringArguments (org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringArguments)8 RenameRefactoring (org.eclipse.ltk.core.refactoring.participants.RenameRefactoring)8 IMethod (org.eclipse.jdt.core.IMethod)1 JavaRenameProcessor (org.eclipse.jdt.internal.corext.refactoring.rename.JavaRenameProcessor)1 RenameCompilationUnitProcessor (org.eclipse.jdt.internal.corext.refactoring.rename.RenameCompilationUnitProcessor)1 RenameEnumConstProcessor (org.eclipse.jdt.internal.corext.refactoring.rename.RenameEnumConstProcessor)1 RenameFieldProcessor (org.eclipse.jdt.internal.corext.refactoring.rename.RenameFieldProcessor)1 RenameLocalVariableProcessor (org.eclipse.jdt.internal.corext.refactoring.rename.RenameLocalVariableProcessor)1 RenameNonVirtualMethodProcessor (org.eclipse.jdt.internal.corext.refactoring.rename.RenameNonVirtualMethodProcessor)1 RenamePackageProcessor (org.eclipse.jdt.internal.corext.refactoring.rename.RenamePackageProcessor)1 RenameTypeParameterProcessor (org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeParameterProcessor)1 RenameTypeProcessor (org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeProcessor)1 RenameVirtualMethodProcessor (org.eclipse.jdt.internal.corext.refactoring.rename.RenameVirtualMethodProcessor)1