Search in sources :

Example 1 with RenameProcessor

use of org.eclipse.ltk.core.refactoring.participants.RenameProcessor in project che by eclipse.

the class RenameMethodInInterfaceTest method helper1_not_available.

private void helper1_not_available(String methodName, String[] signatures) throws Exception {
    ICompilationUnit cu = createCUfromTestFile(getPackageP(), "A");
    IType interfaceI = getType(cu, "I");
    RenameProcessor processor = new RenameVirtualMethodProcessor(interfaceI.getMethod(methodName, signatures));
    RenameRefactoring ref = new RenameRefactoring(processor);
    assertTrue(!ref.isApplicable());
}
Also used : ICompilationUnit(org.eclipse.jdt.core.ICompilationUnit) RenameProcessor(org.eclipse.ltk.core.refactoring.participants.RenameProcessor) RenameVirtualMethodProcessor(org.eclipse.jdt.internal.corext.refactoring.rename.RenameVirtualMethodProcessor) RenameRefactoring(org.eclipse.ltk.core.refactoring.participants.RenameRefactoring) IType(org.eclipse.jdt.core.IType)

Aggregations

ICompilationUnit (org.eclipse.jdt.core.ICompilationUnit)1 IType (org.eclipse.jdt.core.IType)1 RenameVirtualMethodProcessor (org.eclipse.jdt.internal.corext.refactoring.rename.RenameVirtualMethodProcessor)1 RenameProcessor (org.eclipse.ltk.core.refactoring.participants.RenameProcessor)1 RenameRefactoring (org.eclipse.ltk.core.refactoring.participants.RenameRefactoring)1