IReferenceUpdating reference = (IReferenceUpdating)processor;
reference.setUpdateReferences((flags & RenameSupport.UPDATE_REFERENCES) != 0);
}
if (processor instanceof ITextUpdating) {
ITextUpdating text = (ITextUpdating)processor;
@SuppressWarnings("deprecation")
int TEXT_UPDATES =
RenameSupport.UPDATE_TEXTUAL_MATCHES |
RenameSupport.UPDATE_REGULAR_COMMENTS |
RenameSupport.UPDATE_STRING_LITERALS;
text.setUpdateTextualMatches((flags & TEXT_UPDATES) != 0);
}
return processor;
}