process = new ArrayList<IRefactorRenameProcess>();
if (pointers.length == 0) {
// no definition found
IRefactorRenameProcess p = RefactorProcessFactory.getRenameAnyProcess();
process.add(p);
} else {
for (ItemPointer pointer : pointers) {
if (pointer.definition == null) {
status.addFatalError("The definition found is not valid. " + pointer);
}
if (DEBUG) {
System.out.println("Found definition:" + pointer.definition);
}
IRefactorRenameProcess p = RefactorProcessFactory.getProcess(pointer.definition, request);
if (p == null) {
status.addFatalError("Refactoring Process not defined: the definition found is not valid:"
+ pointer.definition);
return status;
}